O'Reilly logo

Microsoft Dynamics AX 2012 R2 Services by Kenny Saelen, Klaas Deforche

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required