How to debug AX X++ code using Visual Studio

1. Create shortcut at VS PC to load VS using AX AXC file
"C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe" /AxConfig "\\servername\c$\AXConfigs\ENV-CUS.axc"

2. Install visual studio remote debug service at AOS PC

3. Run as administrator Remote Visual Studio 2010 Debugger x64 at AOS server

4. Check that Execute business operation in CIL is checked in AX

4. In VS
Set breakpoint in Application Explorer

Tools -> Attach to process
Transport -> Default
Qualifier -> Server name
Check Show processes from all users
Attach to -> Select -> Manageg (v4.0)
Select correct AOS process



About is free platform that allows you to quickly store and reuse snippets, notes, articles related to Dynamics AX.

Authors are allowed to set their own AdSense units.
Join us.

Blog Tags