Add VSCode configuration files for debugging and building with CMake; refactor main.cpp to clean up includes
This commit is contained in:
parent
c3a8206e55
commit
840f236c60
3 changed files with 40 additions and 23 deletions
16
.vscode/launch.json
vendored
Normal file
16
.vscode/launch.json
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Debug",
|
||||
"type": "lldb",
|
||||
"request": "launch",
|
||||
"program": "${command:cmake.launchTargetPath}",
|
||||
"args": [],
|
||||
// CHANGE THIS LINE:
|
||||
// Point the working directory to the folder containing the executable
|
||||
"cwd": "${command:cmake.launchTargetDirectory}",
|
||||
"preLaunchTask": "CMake: build"
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue