Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 571 Bytes

File metadata and controls

15 lines (10 loc) · 571 Bytes

hello-cmake-vsc

VSCode using CMake to launch gdb with program command line arguments

Steps

  1. Open this directory in VS Code
  2. Run the VS Code task "CMake: Configure" which will create a directory build and run cmake in it
  3. Open helloworld.cpp in a VSCode editor
  4. Run the task defined in launch.json "(gdb) Launch"
  5. The debugger launches, pulling information from CMake, and command line parameters are pulled from launch.json

References

https://github.com/microsoft/vscode-cmake-tools/blob/main/docs/debug-launch.md#gdb