Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugging doesn't start #130

Open
nbros opened this issue Apr 22, 2023 · 5 comments
Open

Debugging doesn't start #130

nbros opened this issue Apr 22, 2023 · 5 comments

Comments

@nbros
Copy link

nbros commented Apr 22, 2023

After configuring launch.json and hitting F5 in a compiled Cobol file, debugging doesn't start and I see the following error in the Extension host (remote) output:

[error] TypeError: Cannot read properties of undefined (reading 'pid')
	at Timeout._onTimeout (/home/user/.vscode-server/extensions/olegkunitsyn.gnucobol-debug-2.31.37/out/src/mi2.js:477:32)
	at listOnTimeout (node:internal/timers:559:17)
	at processTimers (node: internal/timers:502:7)
@GitMensch
Copy link
Contributor

How does your configuration look like?

@nbros
Copy link
Author

nbros commented Apr 22, 2023

I have installed and configured:

  • VS Code, IBM Z Open Editor and COBOL debugger.
  • cobc (GnuCOBOL) 3.1.2.0
  • GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1

This is my launch.json:

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "COBOL debugger",
            "type": "gdb",
            "request": "launch",
            "cobcargs": [
                "-free",
                "-x"
            ],
            "coverage": true
        },
    ]
}

@martin3000
Copy link

martin3000 commented Jul 24, 2023

When I press F5 and select "Cobol debugger", als nothing happens.
Is it possible that npm (nodejs) must be installed?

@GitMensch
Copy link
Contributor

Is it possible that npm (nodejs) must be installed?

No.

When I press F5 and select "Cobol debugger", als nothing happens.

You may have to create a launch.json, if this wasn't done automatically (which would be a bug that should be tracked in a separate issue).

If you have this configuration then you may need to set a breakpoint in your COBOL source to not start, run, finish all in a row.

@martin3000
Copy link

martin3000 commented Jul 24, 2023

After adding a folder to the workspace it was possible to create a new launch.json.
But in the launch.json I had to remove the "-free" option. Now it is working.
Thank you for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants