web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / Arbela Technologies Blog / How to debug .NET CLR code ...

How to debug .NET CLR code using Visual Studio

Community Member Profile Picture Community Member

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:

How to debug .NET CLR code 1

Now let’s create a helloworld class that can be run on CIL and also on client/Server and return different results.

How to debug .NET CLR code 2

Run method:

How to debug .NET CLR code 3

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.

How to debug .NET CLR code 4

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.

Comments

*This post is locked for comments