Posts

Showing posts from July, 2024

Tips and tricks to debug x++ code

Image
  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

Ways to run runnable class in d365fo

  A runable class can be run in many methods, one is to attach a menu item and then execute that class from the menu item. Another method is to run from Visual  Studio to set up your project as the startup object and your runnable class as the startup object, then execute it from there, You can run directly from the browser. Run any Runnable class directly from the browser is pretty simple.  https://URL> /?cmp=USMF&mi=SysClassRunner&cls=test Parameters: cmp = Your company name e.g USMF cls = Your Runnable class name e.g. test