In the past two newsletters, I've presented some information about debugging in 132-column mode. That green-screen interface is nice, but this week I've found something better: the iSeries System Debugger.
This debugger is a GUI interface to the debugging facility on the iSeries. It does everything that the green screen program does, plus much more. Here are some of the advantages it has over the green screen debugger:
That last item is a big deal for me. My favorite operating system is FreeBSD, which is a free Unix-like operating system that is like Linux in many ways. One of my perpetual frustrations with IBM's GUI tools like iSeries Navigator and WDSc is that they only work on Windows. I don't think IBM realizes this, but by only making their new updated tools for Windows, they're basically telling us, "To choose the iSeries is to choose Windows." So, when I learned that the iSeries System Debugger runs on any system, I was pleasantly surprised.
Of course, this debugger also works on Windows, Linux, and Mac systems.
The debugger was officially released with V5R2 of OS/400, but it can be installed on a V5R1 system by installing two PTFs, SI02871 and SI02849. You'll also need the IBM Toolbox for Java (5722-JC1) installed on your iSeries. Once installed, you can start the iSeries side of the debugger on your V5R2 or later system by typing the following command:
STRTCPSVR SERVER(*DBG)
Or, on a V5R1 system, you can start it by typing the following:
CALL QSYS/QTESSTRSVR
You'll also need to install the user interface on the workstation that you'd like to do the debugging from. To do that, take the following steps:
Once you have everything installed, you need to add the JAR files that you downloaded to Java's CLASSPATH and launch the Debug Manager. On my Windows system, I wrote a little .BAT file to do this. I called it DebugMgr.bat, and it contains the following code:
@echo off set CLASSPATH=%CLASSPATH%;c:\sysdbg\jhall.jar set CLASSPATH=%CLASSPATH%;c:\sysdbg\jt400.jar set CLASSPATH=%CLASSPATH%;c:\sysdbg\tes.jar java utilities.DebugMgr
If you're running a Unix-like system such as FreeBSD or Linux, you'll have to use a different directory and set up the CLASSPATH in a shell script instead of a batch file.
To start the debug manager, simply run the batch file. If all is well, a Window entitled "iSeries Debug Manager" will pop up on your screen. The next step is to click Edit|Add System to connect the debug manager to your iSeries.
Once the debug manager has been connected, the user-id that you signed on with will be registered to use the iSeries System Debugger. If you have additional iSeries systems that you'd like to connect to, you can click Edit|Add System again to add them. Likewise, if you have alternate user names on your iSeries, you can register them for use with the GUI debugger by clicking Edit|Add User.
There are three ways to start an actual debug session in the iSeries System Debugger.
The iSeries System Debugger is a modern, powerful tool for debugging your iSeries programs. If you're used to the green-screen tools, there might be a learning curve before you have the hang of it, but once you're beyond that curve, you won't want to go back!