Viewing the Debug Log
Often, it is useful to print messages that indicate that a line of code has been reached or to print the value of a certain object. You can do this using the debugLog method. There are debugLog methods that take a String, double, int, or boolean, or 1D or 2D array (matrix) types of these objects as input. These methods print a message to the Debug Log window. Also, when method code prints to System.out or System.err, each completed line is sent to the Debug Log window, in addition to, for example, a console window if started from a Linux® terminal.
No printing to System.out or System.err will appear in the Debug Log window if the method is called from the Java Shell window, where the output already goes to that window,
You can control the visibility of the Debug Log window using the Debug Log () button in the Method ribbon tab. In the Debug Log window, select the Scroll Lock button () to prevent new messages from being scrolled into view, useful in case you are inspecting some part of the log while new messages are being added.