Tips and tricks to debug x++ code

 

Breakpoint in info.add method:

Tips and tricks that every developer should know: First, set a breakpoint in the info.add method. Suppose you get an error and the error is in the info log. It can be difficult to track errors in the info log. The Info class is very useful.

Add the breakpoint on the add method of info class and rerun the scenario.


Then attach the process w3p.exe and run the whole scenario. 



see the call stack




Comments

Popular posts from this blog

JSON-Based HTTP POST Request from X++ to Retrieve an Access Token

Calling an External API from D365FO Using X++ to Retrieve a Token

Restricting Date Selection in Dynamics 365 FO using X++