Previous Topic Next topic Print topic


Java CodeWatch

This new user interface has been designed to streamline debugging tasks and has a host of usability improvements such as persistent break points, watch lists, etc. It is written in Java and to use it you need to have the latest Java Runtime Environment (JRE) or Java Development Kit (JDK) installed.

You also need to copy cw_java.jar from the Bin directory in the installation of your development system to the debug directory under $HOME/nxopdemo

Which debugger you use is controlled by an environment variable:

To see some of the Java debugger's facilities:

  1. When the Java debugger runs, you will see the source code displayed on the left and some panels on the right.
  2. Scroll down in the source code panel until you can see the line beginning with SYSPRINT_BUFF = 'ABC...
  3. Double-click on this line to set a breakpoint at this instruction.
  4. Click on the top left of the debugger to continue to this breakpoint.
  5. Click to step over this line.
  6. Place the mouse cursor above the word SYSPRINT in the source code panel to see the contents of this variable.
  7. Right-click on the word SYSPRINT and click Add 'SYSPRINT' to watch panel to make it a permanent watch item.
  8. You can keep stepping at this point or press the in the top right corner to close the debugger.
Previous Topic Next topic Print topic