Title: How do I configure the debugger to find source code that is not in CLASSPATH?

NOTE:
This information is valid if your programs have been compiled by an isCOBOL version 2020 R1 or earlier.
In versions after 2020R1, the source code is included in the class and the debug.code_prefix is not needed.

Question:

My source code and objects are in different directories. I don't want to add the source directories to CLASSPATH. Is there another alternative to allow the debugger to find the source files?

Answer:

Set the "iscobol.debug.code_prefix" property to a list of directories that contain your source code:

   iscobol.debug.code_prefix=c:p1;c:p2
Since the "iscobol.debug_code_prefix" is a property used by the debugger itself, you can set it on the command line before the -d:
   iscrun -J-Discobol.debug.code_prefix=c:/p1,c:/p2 -d PROGRAM
or
   java -Discobol.debug.code_prefix=c:/p1;c:/p2 com.iscobol.invoke.Isrun -d PROGRAM
Or if you are using iscrun -d you can set it in the environment. For example:
   set debug.code_prefix=c:p1;c:p2 
   iscrun -d PROGRAM
Authored by: Veryant Support on Wed, Sep 2nd, 2009 at 7:00 PM
This question has been viewed 7909 times so far.
Online URL: http://support.veryant.com/support/phpkb/question.php?ID=74

Powered by PHPKB Knowledge Base Software