Not breaking at Breakpoint when Debugging when using CDT Blueprint

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

@planger

This issue was because I had GDB version 7.6 and CDT plugin released works with GDB 8 or greater. By upgrading my GDB, this worked. Please refer to this GIT issue

2 Likes

Great, thank you for posting the solution!

1 Like