How to debug .NET CLR code using Visual Studio
AX 2012
Most of the Business operations in AX 2012 are run as IL. First thing, run as IL is different from run on server/client.
Let me give you an example of how the IL code is triggered. The following examples are of customer invoices:
Now let’s create a helloworld class that can be run on CIL and also on client/Server and return different results.
Run method:
Now let’s try to debug the class using Visual studio. To do that you need to attach AX with visual studio: Open visual studio > Debug > attach process > Lookup for Ax32serv.exe. If you don’t see it, check the box for: “Show process for all users” (Please restart your VS after attachment.)
Once the attachment is done. Open the object you want to debug and place breakpoints and run it.
Attaching the process is important for debugging in Visual studio.
Submitted by: Khalid Mohammed, Senior Technical Consultant at Arbela Technologies
The post How to debug .NET CLR code using Visual Studio appeared first on Arbela Tech.

Like
Report
*This post is locked for comments