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

Support The Author

 If you found value in what I share, I've set up a Buy Me a Coffee page as a way to show your support.

Buy Me a Coffee

Post a Comment


All Comments


No comments. Be the first one to comment on this post.

Search

About

DaxOnline.org is free platform that allows you to quickly store and reuse snippets, notes, articles related to Dynamics 365 FO.

Authors are allowed to set their own "buy me a coffee" link.
Join us.

Blog Tags