How to setup Debugging in Visual Code in Ubuntu

Опубликовано: 19 Октябрь 2024
на канале: LeSniperJF
3,115
9

Here I show you how to setup the debugger inside of Visual Code so that you can use breakpoints and variable watch with C++ Programs. This tutorial is for users who have an Ubuntu Host Machine or running and Ubuntu VM, but should work for most Linux distros.


Please note that before this video you should make sure you can compile and run programs on the terminal. If you cannot make sure you have g++ and gdb installed. You can do so with the following two commands:
sudo apt-get install gdb
sudo apt-get install g++


Then go ahead and install visual code using:
snap install --classic code


Then proceed to follow instructions in the video.


I hope this helps!