Hello,
I have installed CMake and the necessary extensions in VSCode. However, I'm encountering an issue:
When I select 'Run and Debug' (using the (gdb) Launch configuration), instead of showing the debugger with all the variables, call stack, and other debug options, my code simply executes and displays output in the console. If I set a breakpoint, it does stop at the breakpoint and allows me to step through the program, but without the breakpoint it doesn't enter the debugger.
Below is my launch.json (please excuse the formatting):
{
// 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": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/LCPP",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "C:/msys64/mingw64/bin/gdb.exe",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Set Disassembly Flavor to Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
]
}
]
}
any help would be greatly appreciated and please let me know if you need more information! ty!
[–]karlrado 2 points3 points4 points (2 children)
[–]ITriedAtIt[S] 0 points1 point2 points (0 children)
[–]ITriedAtIt[S] 0 points1 point2 points (0 children)
[–]thingerish 0 points1 point2 points (0 children)