Book Image

Microsoft Dynamics AX 2012 R2 Services

Book Image

Microsoft Dynamics AX 2012 R2 Services

Overview of this book

Table of Contents (17 chapters)
Microsoft Dynamics AX 2012 R2 Services
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Using the Visual Studio debugger


When your code runs in CIL, you can only debug it using the Visual Studio debugger. Of course, you should have Visual Studio 2010 installed, along with the Visual Studio tools that come with the Microsoft Dynamics AX 2012 installer.

Launching Visual Studio

To start Visual Studio with the intention of debugging the CIL code, perform the following steps:

  1. Open the Microsoft Dynamics AX Configuration Utility.

  2. In the Configuration Target combobox, select Local client.

  3. In the Configuration combobox, select the configuration that points to the AOS you want to debug. Then click on OK to close the utility.

  4. Right-click on the Visual Studio 2010 icon and click on Run as administrator.

Visual Studio will launch, and you should see Visual Studio along with the Application Explorer window as shown in the following screenshot:

If you can't see the Application Explorer window, activate it by going to View | Application Explorer or using the shortcut Ctrl + D + Enter.

The Application...