How to debug X++ Code in AX 2012 and Dynamisc D365

Hi,

X++ Code Debugging in AX 2012

 Allow debugging on an Application Object Server instance

1. Start --> Administrative Tools --> Microsoft Dynamics AX Server Configuration
2. Select Application Object Server tab, click Enable breakpoints to debug X++ code running on this server.

In AOT window

  • Go to Tools > Options in the Dynamics AX client drop-down menu
  • Select the Development page, set the Debug mode field to When breakpoint

Breakpoints can be set or removed from any line using the F9 key. 

X++ Code Debug in Dynamisc D365.

1. set the project as startup project
2. set the runnable class as startup object
3. put the breakpoint at the required line
4. go to the debug menu, select attach process.(this step not required for runnable classes).
5. select processes from all users check box.(this step not required for runnable classes).
6. select all w3wp process instances and click on attach.(this step not required for runnable classes).
7. wait until all symbols are loaded.(this step not required for runnable classes).
8. start debugging. It should hit breakpoint.

Reference
Reference
Reference

Debug X++ against a copy of a production database

DEBUG PRODUCTION ENVIRONMENT






Comments