theia-ide / theia-apps

Theia applications examples - docker images, desktop apps, packagings
Apache License 2.0
1.04k stars 345 forks source link

Not breaking at Breakpoint when Debugging when using CDT-GDB #513

Closed SreeRanjani-Soliton closed 2 years ago

SreeRanjani-Soliton commented 2 years ago

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

vince-fugnitto commented 2 years ago

Closing as the issue is unrelated to theia-apps and was already asked on the forum. The example from theia-cpp-extensions works fine.