|Title: How do I set things up to remote debug just one program when the server executes it?|
|To run the debugger use the following properties when you start the server (e.g. add the following lines to your ~/iscobol.properties file):
iscobol.rundebug=2 iscobol.debug.port=9999Then compile the programs without -d except for the one you want to debug. Compile the one you want to debug with -d.
When isCOBOL hits the program compiled with -d, it will stop and wait for the debugger to connect. At that point you can run the following from Unix (assuming you have your DISPLAY variable set correctly to point to your X server):
The source code for the program you are debugging must be located in one of the CLASSPATH directories.
Using an X server with the debugger can sometimes be very slow. Another option is to run the debugger locally on your Windows desktop. To do this, copy the source code for the program you want to debug to your local Windows machine and made sure the directory is in your Windows CLASSPATH setting. Then run the following from your Windows machine:
where hostname is the hostname of your server machine.
The debugger is much more responsive in this mode because it is all running locally except for the network messages that occur when you step through the program.
|Authored by: Veryant Support on Wed, Sep 2nd, 2009 at 7:00 PM
This question has been viewed 6701 times so far.
|Online URL: http://support.veryant.com/support/phpkb/question.php?ID=73|
Powered by PHPKB Knowledge Base Software