AX 2012: How to debug batch jobs and service operations?

All the batch jobs and service operations now run in the managed code (IL) and therefore breakpoints set in x++ do not get hit as expected! Instead you should be setting breakpoints in the IL code in Visual Studio. Here are the steps you would be following to do so: 1. Open Visual Studio as … Continue reading AX 2012: How to debug batch jobs and service operations?

AX 2012: X++ breakpoints not hitting?

If you are not hitting the breakpoints you set in X++ code as expected then make sure that your code isn't executed by the SysOperation Framework (formerly known as Business Operations Framework - BOF). If this is the case then you can force the AOS to debug your code in Dynamics AX Debugger by CLEARING … Continue reading AX 2012: X++ breakpoints not hitting?