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

custom debug configuration does not work with webfreak.debug extension #71

Open
GitMensch opened this issue Nov 5, 2023 · 0 comments
Open

Comments

@GitMensch
Copy link

Hi. I'm trying to use a custom debug configuration using the NativeDebug extension webfreak.debug within gitpod.

The debug configuration I'm using is

        {
            "name": "CTest",
            "type": "gdb",
            "request": "launch",
            // "target": ""  including that leads to an error message because of missing symbols
        }

When starting a test I do get an error message

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
at new NodeError (node:internal/errors:399:5)
at validateString (node:internal/validators:163:11)
at Object.isAbsolute (node:path:1157:5)
at MI2.load (/workspace/.vscode-remote/extensions/webfreak.debug-0.26.1-universal/out/src/backend/mi2/mi2.js:65:19)
at GDBDebugSession.launchRequest (/workspace/.vscode-remote/extensions/webfreak.debug-0.26.1-universal/out/src/gdb.js:52:29)
at GDBDebugSession.dispatchRequest (/workspace/.vscode-remote/extensions/webfreak.debug-0.26.1-universal/node_modules/vscode-debugadapter/lib/debugSession.js:378:22)
at GDBDebugSession.handleMessage (/workspace/.vscode-remote/extensions/webfreak.debug-0.26.1-universal/node_modules/vscode-debugadapter/lib/protocol.js:61:18)
at GDBDebugSession._handleData (/workspace/.vscode-remote/extensions/webfreak.debug-0.26.1-universal/node_modules/vscode-debugadapter/lib/protocol.js:155:34)
at Socket.<anonymous> (/workspace/.vscode-remote/extensions/webfreak.debug-0.26.1-universal/node_modules/vscode-debugadapter/lib/protocol.js:80:44)
at Socket.emit (node:events:513:28)

Checking the code I do see that this is rooted in the webfreak.debug extension expecting a target attribute, which is not set.

To make this extension also support webfreak.debug it seems that you may only need to set some additional attributes:

  • place whatever you put into program also in target
  • place whatever you put into args also in arguments
    arguments
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

1 participant