filmov
tv
Create project with multiple source files, compile, run and debug in the project via VS Code

Показать описание
Homework at Ho Chi Minh University of Science (HCMUS)
Student ID 23127266 – Nguyễn Anh Thư
___
Create a C++ project in VS Code by placing all your .cpp and header files in one folder, then add a build task that compiles every source file with the -g flag into a single executable.
Configure a launch profile that points "program" at that executable and uses "preLaunchTask" to rebuild before debugging. With this setup, you can compile all files at once, run the resulting binary, and seamlessly set breakpoints or step through code across multiple source files—all within VS Code’s integrated debugger.
___
Student ID 23127266 – Nguyễn Anh Thư
___
Create a C++ project in VS Code by placing all your .cpp and header files in one folder, then add a build task that compiles every source file with the -g flag into a single executable.
Configure a launch profile that points "program" at that executable and uses "preLaunchTask" to rebuild before debugging. With this setup, you can compile all files at once, run the resulting binary, and seamlessly set breakpoints or step through code across multiple source files—all within VS Code’s integrated debugger.
___