Debugging C++ in Visual Studio Code using gcc/gdb and Bazel

Опубликовано: 09 Апрель 2026
на канале: arisaif
12,941
128

In this video I will go over how you can set up VSC (Visual Studio Code) to debug your C++ programs.

You can download the templates used in this video from:
Simple g++ compile: https://github.com/ourarash/gcc_debug...
Build with Bazel: https://github.com/ourarash/cpp-template

I will cover the following topics:

Debugging using simple g++ and gdb
Debugging using Bazel
Breakpoints
Conditional Breakpoints
Function Breakpoint
Variable Watch
Call Stack

More info on VSC debugging: https://code.visualstudio.com/docs/cp...