support: Customer Portal
Focused on delivering choice, investment protection and flexibility to organizations with valuable COBOL assets

Veryant Knowledge Base
Home > All Categories > Debugging > How do I set things up to remote debug just one program when the server executes it?
Question 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 ~/ file):
Then 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):

java com.iscobol.debugger.GraphDebugger -r localhost -p 9999 

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:

java com.iscobol.debugger.GraphDebugger -r hostname -p 9999 

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 This question has been viewed 7016 times so far.
Click Here to View all the questions in Debugging category.
File Attachments File Attachments
There are no attachment file(s) related to this question.
How helpful was this article to you?
User Comments User Comments Add Comment
There are no user comments for this question. Be the first to post a comment. Click Here
Related Questions Related Questions
  1. Why do I get "File not valid" when I run the debugger?
  2. How do I configure the debugger to find source code that is not in CLASSPATH?
  3. How do I specify isCOBOL, Java or application properties on the command line?
  4. Starting a new trace log file for the current run unit
  5. How to tell the Debugger to pause with a different key than the Pause key?
  6. Did you know you can see the content of variables while debugging?
  7. Did you know how to show variables in Debugger using a tree structure?
Article Information Additional Information
Article Number: 73
Created: 2009-09-02 12:55 PM
Rating: 5 Stars
Article Options Article Options
Print Question Print this Question
Email Question Email Question to Friend
Export to Adobe PDF Export to PDF File
Export to MS Word Export to MS Word
Bookmark Article
Subscribe to Article Subscribe to Article
Search Knowledge Base Search Knowledge Base


© Veryant - All Rights Reserved
Veryant and isCOBOL are trademarks or registered marks of Veryant in the United States and other countries. All other marks are the property of their respective owners.