

Typically, thorough testing is necessary to find all problems within an application. Some, like a program crashing during startup, are immediately obvious, while others are more subtle. With the program compiled, you will be able to select "Run and Debug" from the Debug menu to launch the debugger.īugs and errors can come in all shapes and sizes.

Launch.json Configuration File: Note “program” variable must be modified to point towards your programs executable (.exe file)įinally, compile the program using the desired compiler.

Throughout this tutorial, the following C++ class is used as an example (vector.h): class Vector /Debug/pathfinder.exe", In this article you will learn how to debug using the C/C++ extension for VS Code, including advanced features like breakpoints, tracking variable values, and stepping. Debugging can be a life-saver when it comes to discovering bugs or errors in your code.
