Most Microsoft Dynamics AX developers are very familiar with debugging using the Microsoft Dynamics AX debugger. However, because services are compiled to CIL, you'll spend a lot more time with the Visual Studio debugger. Some find this off-putting, but the debugging process is actually very straightforward.
Developers may be used to debugging, but tracing is another story. Probably one of the most underused features of Microsoft Dynamics AX 2012 is the Tracing cockpit, which is first and foremost a tool for measuring performance. This is something you should always do when developing with Microsoft Dynamics AX, including when using its services. You can also use it to extract tracing information about X++ code from an environment where debugging is not an option and then study it using the Microsoft Dynamics AX Trace parser.
In a live environment, it is better to use WCF tracing; it has less performance overhead and provides you with a wealth of information that helps you when troubleshooting problems.
In this chapter, we will introduce these tools and look at when and how they can be used.
The following topics will be covered in this chapter:
This chapter uses a number of development tools that can be installed using the Microsoft Dynamics AX setup. These tools are listed in the setup wizard under the Development tools node and consist of the following:
If you are having trouble installing or configuring these components, refer to the Microsoft Dynamics AX 2012 Installation Guide at http://www.microsoft.com/en-us/download/details.aspx?id=12687.
From here on, we assume that you have successfully installed these components and configured both client and server components to allow the debugging of code running on the client, server, and CIL.
3.138.37.191