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 :
Microsoft Dynamics AX (Archived)

Can't Debug CIL Code

(0) ShareShare
ReportReport
Posted on by

I Follow these steps but while debugging, it is not get into the break point in visual studio. 

  1. Open Visual Studio, create a new project, and in the AX Application Explorer find the methods in the
    service classes that are of interest.
  2. In Visual Studio add breakpoints where needed.
  3. Click Debug, and then click Attach to Process.
  4. Mark the checkboxes for Show processes from all users and Show processes in all sessions.
  5. Select AX32Serv.exe and click Attach.The Ax32Serv.exe won't be able available if you are not debugging on the AOS, so
    you need to be on the AOS.

Can anyone help me in this problem?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    237,801 Most Valuable Professional on at

    Does you AOS allow debugging? If not, CIL is not generated with information needed for debugging.

    Also untick "Enable just my code" in debugging options in Visual Studio.

  • Suggested answer
    raelhefn Profile Picture
    on at

    For Details Please refer to :

    msdn.microsoft.com/.../gg860898.aspx;MSPPError=-2147217396

    learnax.blogspot.com/.../ax-2012-how-to-debug-code-in-visual.html

  • Community Member Profile Picture
    on at

    i untick this option and still not working

  • Community Member Profile Picture
    on at

    learnax.blogspot.com/.../ax-2012-how-to-debug-code-in-visual.html

    Ramy, This Link that i already use to debug CIL code but not working

  • Suggested answer
    Iulian Cordobin Profile Picture
    8,201 on at

    In Visual Studio, when you add the breakpoint, does it tell you that no symbols are loaded and the breakpoint won't be hit? (the red circle of the breakpoint is it full red, or just it's margin?)

    You should have performed a FULL CIL and make sure it was successful (no errors at the end of the process) and make sure the symbols are loaded form the C:\Program Files\Microsoft Dynamics AX\60\Server\PCL_DAX_AOS_01\bin\XppIL (this is the default path for an 60 AOS).

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans