Like which is the best place to keep a breakpoint and where not to keep it and how to change variable values and check.
P.S. I am new to AX and would be thankful for the help:)
*This post is locked for comments
Take a look at Using the Microsoft Dynamics AX Debugger [AX 2012] and Tips & Tricks around debugging X++ code in Dynamics AX. If you have specific questions, you should create separate posts for each in the Development / Customization / SDK forum.
The "proper" way is done by not breaking a couple of simple rules:
- Do not enable global breakpoints and server-side debugging in a Production environment. It negatively affects performance up to 20%.
- Do not put breakpoints in a Production environment even for jobs or things running on client side, under some circumstances it could crash your AOS instance
- Do not use hard breakpoints in X++ code
- Debug class calls are OK during development and testing phase, but do not leave them in Production blogs.msdn.microsoft.com/.../debugassert-in-x
Other than these, debugging is pretty straightforward both in Debug.exe and in Visual Studio. Altering variable values during the execution is possible in the first scenario (VS type conversions are a bit funky), and also you could drag the execution cursor to a later or previous step if desired.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Tocauer 4
Community Member 2
Nayyar Siddiqi 2