An open API service indexing awesome lists of open source software.

https://github.com/devel0/example-vscode-linux-cpp-debug

skeleton of c++ application in linux using makefile and vscode debug
https://github.com/devel0/example-vscode-linux-cpp-debug

cpp debug example linux vscode

Last synced: 4 days ago
JSON representation

skeleton of c++ application in linux using makefile and vscode debug

Awesome Lists containing this project

README

          

# example-vscode-linux-cpp-debug

*[c++](../README.md#c)*

skeleton of c++ application in linux using makefile and vscode debug

![img](doc/Selection_001.png)

## prerequisites

- install [vscode](https://code.visualstudio.com/)
- install gcc and gdb
- install vscode extension [easy c++ project](https://github.com/acharluk/easy-cpp-projects)

## create new project

- [F1] easy cpp ( select `Easy Cpp/C++: Create new C++ project` )
- `G++/GDB Linux`

## test breakpoint

- hit `F9` on row to set breakpoint

## troubleshoot

- using vscode 1.30 gives an [error](https://github.com/Microsoft/vscode/issues/64948) when starting debug `Stopping due to fatal error: NullReferenceException: Object reference not set to an instance of an object`
- solve by setting "externalConsole" to false in `.vscode/launch.json`