Dialog function debugging techniques
Sometimes the simpler methods are more productive than the more sophisticated tools, because we can set up and test quickly, resolve the issue (or answer a question), and move on. All the simpler methods involve using one of the C/AL DIALOG
functions such as MESSAGE
, CONFIRM
, DIALOG
, or ERROR
. All of these have the advantage of working well in the RTC environment. However, we should remember that none of these techniques conform to Testing Best Practices in the Testing the Application Help. These should only be used when a quick, one-time approach is needed or when recommended testing practices won't easily provide the information needed and one of these techniques will do so.
Debugging with MESSAGE and CONFIRM
The simplest debug method is to insert the MESSAGE
statements at key points in our logic. It is very simple and, if structured properly, provides us a simple "trace" of the code logic path. We can number our messages to...