As part of my series on “Things new X++ Developers Should know”. I have been writing a few basic howtos for new X++ Developers.
Today’s post relates to quickly navigating to the source code from where an info log error, warning or information message is called from. It took me a while to figure out that for many info log messsages you can simply double click on the message in the info log window and the code that called the message will be displayed for you.
E.G. If you see the normal error log icon or warning icons with a small arrow in the bottom left corner, you are normally able to double click the message to see the code behind it. These icons look like this:
Simply Double click the message as below
To be presented with the code that called it.
NOTE 1: If you have your “Execute business operations in CIL” user option enabled, a lot of business logic like postings etc will not allow you to drill down.
NOTE 2: If the code calling the info message makes use of the SysInfoAction parameter, you will be taken to an alternate form specified by the developer and not the source code. (See Axaptapedia Article)