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
- Host: GitHub
- URL: https://github.com/devel0/example-vscode-linux-cpp-debug
- Owner: devel0
- License: mit
- Created: 2018-11-02T09:10:16.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-15T11:30:04.000Z (over 6 years ago)
- Last Synced: 2025-04-02T00:37:38.084Z (about 1 year ago)
- Topics: cpp, debug, example, linux, vscode
- Language: Makefile
- Homepage:
- Size: 135 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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

## 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`