Skip to main content

[Migrated content. Thread originally posted on 23 January 2012]

Hi,
I'm evaluating Server Express Remote Development Option and have a question concerning debugging remote programs.
In my setup I'm not using the compile functionality in Eclipse to compile my programs. I'm compiling my programs using the Server Express compiler on the shell of the remote machine. It places the .so-Files and .idy-Files in the directories I want them to be.

In my Eclipse project I have the correct source code of my program and in the debugging settings (Wait for Remote Application Attachment) I tell the debugger where to find the .idy-Files for debugging. At that point everything works. The application attaches and I can step through the program.

My problem is that breakpoints and watchpoints don't work. They only work when I'm using the .so-Files and .idy-Files generated by compiling through Eclipse.

Is there a possibility to debug (and use breakpoints of) cobol programs that where compiled using the normal Server Express compiler or do they just work when using the RDO compile function in Eclipse (build project)?

Thanks for the answer,
Sebastian

[Migrated content. Thread originally posted on 23 January 2012]

Hi,
I'm evaluating Server Express Remote Development Option and have a question concerning debugging remote programs.
In my setup I'm not using the compile functionality in Eclipse to compile my programs. I'm compiling my programs using the Server Express compiler on the shell of the remote machine. It places the .so-Files and .idy-Files in the directories I want them to be.

In my Eclipse project I have the correct source code of my program and in the debugging settings (Wait for Remote Application Attachment) I tell the debugger where to find the .idy-Files for debugging. At that point everything works. The application attaches and I can step through the program.

My problem is that breakpoints and watchpoints don't work. They only work when I'm using the .so-Files and .idy-Files generated by compiling through Eclipse.

Is there a possibility to debug (and use breakpoints of) cobol programs that where compiled using the normal Server Express compiler or do they just work when using the RDO compile function in Eclipse (build project)?

Thanks for the answer,
Sebastian

Hi Sebastian,
This is an oversight in the SX RDO product whereby the idy files store the path to the source files when they are created. The debugger has an option (which we don't make use of in SX RDO) to ignore this, otherwise as the source file paths don't match, breakpoints are not available.

We fixed this for the latest Visual COBOL product and an option is available in the debug launch configuration to bind the breakpoints when the files don't match.

You be pleased to hear that there is also a workaround you can use on your product which tells the debug engine to ignore this check. Here are the details:

<quoted_text>
There is an option which can be specified to the RDO debugger to make it ignore the paths specified when breakpoints are being set and instead rely just on the filenames (basically what character animator does).

To enable this option perform the following steps BEFORE starting the RDO daemon:

1) Place the supplied/attached debug.xml file somewhere on your UNIX system
2) set the environment variable DEBUG_CONFIG to point to this file e.g. export DEBUG_CONFIG=/path/debug.xml
3) start the RDO daemon

By doing this the DEBUG_CONFIG environment variable should be inherited by the debugger process which is invoked by an RDO server and the debug.xml file specifies the required option.
</quoted_text>

<?xml version="1.0" encoding="UTF-8"?>
<NativeDebuggerOptions>
<DebugOption Value="no" Option="MatchIncludePath"/>
</NativeDebuggerOptions>

The file is attached (as debug.doc), but you'll need to rename it to debug.xml

Hope that helps,

Darren Self.


[Migrated content. Thread originally posted on 23 January 2012]

Hi,
I'm evaluating Server Express Remote Development Option and have a question concerning debugging remote programs.
In my setup I'm not using the compile functionality in Eclipse to compile my programs. I'm compiling my programs using the Server Express compiler on the shell of the remote machine. It places the .so-Files and .idy-Files in the directories I want them to be.

In my Eclipse project I have the correct source code of my program and in the debugging settings (Wait for Remote Application Attachment) I tell the debugger where to find the .idy-Files for debugging. At that point everything works. The application attaches and I can step through the program.

My problem is that breakpoints and watchpoints don't work. They only work when I'm using the .so-Files and .idy-Files generated by compiling through Eclipse.

Is there a possibility to debug (and use breakpoints of) cobol programs that where compiled using the normal Server Express compiler or do they just work when using the RDO compile function in Eclipse (build project)?

Thanks for the answer,
Sebastian
Hi Darren,
thank you very much!
Works fine!

You made my day :)