how do i use a debugger in vs code for a c++ program. i watched some videos and tutorials but didn't quite get anything.
do i need the codelldb extension for that. is a launch.json file needed for using the debugger .i once ran the debugger without the launch.json file but it didn't stepped into a function that i had created . it went into some weird location (something like main.h , i think) what configuration do i need in the launch.json file . what are "launch" and "attach" in there. what is "c++ : catch" and "c++: throw" in the breakpoints window.
this is my launch.json for codelldb : { "version": "0.2.0", "configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug",
"program": "${fileDirname}\\${fileBasenameNoExtension}.exe",
"args": [],
"cwd": "${fileDirname}"
}
]
}