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

Not breaking at Breakpoint when Debugging #67

Closed
SreeRanjani-Soliton opened this issue Apr 22, 2022 · 2 comments
Closed

Not breaking at Breakpoint when Debugging #67

SreeRanjani-Soliton opened this issue Apr 22, 2022 · 2 comments

Comments

@SreeRanjani-Soliton
Copy link

SreeRanjani-Soliton commented Apr 22, 2022

When I try to use cdt-gdb-vscode to achieve debugging of cpp files in Theia with GDB, the code doesn't break at breakpoint, the breakpoint is faded and when I hover over a message saying r -break-insert: Unknown option ``-source'' is shown . I use the below Launch.json configuratoin

{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "gdb",
"request": "launch",
"name": "Debug (GDB)",
"program": "${workspaceFolder}\HelloWorld.exe"
}
]
}

Error (On hover near breakpoint):
image

@jonahgraham
Copy link
Contributor

jonahgraham commented Apr 22, 2022

Hi @SreeRanjani - as it turns out I just fixed this issue a few days ago (see #187)

Specifically this commit:
eclipse-cdt-cloud/cdt-gdb-adapter@13a9ecc

As you can see from #187 the adapter was originally written for GDB >= 8.0, presumably you are using some older version of GDB.

Are you using GDB 7.6 or later?

@SreeRanjani-Soliton
Copy link
Author

Thanks, I was using GDB v7.6.1, I was able to get this working by upgrading the version of GDB. Thanks for support

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

2 participants