C/C++ Debug Configuration

I cannot get the instructions on this page: C++ in Gitpod
working for the project created from on this page/repo: HelloGitPod WRT configuring / getting the debugger to work.

If I ignore the instructions and use the following configuration:

{
"name": "Debug",
"type": "gdb",
"request": "launch",
"target": "./build/HelloGitPod",
"cwd": "${workspaceRoot}",
"valuesFormatting": "parseText"
}

I get the following error:

No symbol table is loaded. Use the "file" command.
Running executable
warning: Error disabling address space randomization: Operation not permitted
Hello world!
[Inferior 1 (process 1725) exited normally]

Thanks,
djg

thanks, we will look into it c/c++ debugging is broken · Issue #4805 · gitpod-io/gitpod · GitHub

Hello @davegi - please take a look at the investigation here

Cheers,
Lore

1 Like