Hello there,
we are currently migrating from Visual Cobol for Eclipse 7 to Visual Cobol for Eclipse 9. A few users of our users have already installed the new Version Visual Cobol for Eclipse 9 (PU 04) under Windows.
Some of our users experienced the error "Problem occured: 'Debug Source Display' has encountered a problem. An internal error has occured - Null argument" while debugging. While Debugging, a window pops up with that error message, and after closing the error-window, no more Cobol sources nor Cobol copies are displayed, but the debugger is still attached. Eclipse then asks for cobol copy (ALCTRCMA.cpy), which should be familiar, because it is already known to the project. The error window itself pops up, after taking a few steps (F5) in the Remote Debugging perspective.
I attached a screenshot of the issue in question. At the top you can see the error in the Debugging perspective. Then a new window pops up if I want to select a new context (doesn't help). At the bottom I attached a screenshot of the Cobol Copy in question, which you can see is available in the project. (The cobol/AL/cpy folder contains multiple Cobol copies, in the screenshot I'm only showing the Cobol Copy in question: ALCTRCMA.cpy)
So the debugging first starts off completely fine, after the "Remote source lookup creation" we can see our main source and we can also take a few steps in the running program.
Here's a rough explanation, what we can see and debug, before the error occurs: The main source has a "PERFORM XXX" statement, in the XXX section we have some, INITIALIZE, SET, CALL, IF ... MOVE ... END-IF statements. Until this point we are able to remotely debug the program with VC9. But then we have a (seemingly problematic) statement "EXIT" in the cobol program at the end of the XXX section - and after that we get the error 'Debug Source Display ... Null argument'
The error is replicable on my machine. The remote debugging of our project worked fine with MicroFocus Visual Cobol 7.
We are primarly using the "Remote COBOL Project " to import a LINUX Cobol project (that has already been compiled in linux) and then debug the Cobol programs, which are running under Linux. These steps worked very nicely with the previously used Visual Cobol for Eclipse 7 Version.
Some Information about the project:
- Remote COBOL Project file system: RSE using Micro Focus template [64 bit]
- After creating the project we disable the Remote COBOL Builder: Properties > Builders > uncheck "Remote COBOL Builder"
- We use the "COBOL Wait for Application Attachment", where we modify the Tabs "Source" (with our Remote Sources folder) and "Debug Symbols" (with our precompiled Debug symbols)
What product and version number are you using?
Windows: Version: 9.0.00170 Update level: PU 04
Linux:
- I tried "Micro Focus Visual COBOL Development Hub 7.0 - Patch Update 14" (pkg_312705) aswell as
- Micro Focus Visual COBOL Development Hub 9.0 - Patch Update 09 (pkg_358101)
OS:
Windows: Windows 10 Enterprise
Linux: I tried "SUSE Linux Enterprise Server 15 SP5" aswell as "SUSE Linux Enterprise Server 12 SP5"
Do you have any ideas, how we can resolve the issue ?
Thanks in Advance !