Skip to content

Instantly share code, notes, and snippets.

@karlrado
Last active May 14, 2023 16:07
Show Gist options
  • Save karlrado/7da0bbaf4159f3baa53688188a7e0348 to your computer and use it in GitHub Desktop.
Save karlrado/7da0bbaf4159f3baa53688188a7e0348 to your computer and use it in GitHub Desktop.
VSCode Launch Scripts
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "ChapterN", // Need to be looking at the ChapterN source file to use this
"type": "cppvsdbg",
"request": "launch",
"program": "${command:cmake.buildDirectory}/${relativeFileDirname}/${command:cmake.buildType}/${fileDirnameBasename}.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${command:cmake.buildDirectory}",
"environment": [],
"console": "internalConsole"
},
{
"name": "Chapter1",
"type": "cppvsdbg",
"request": "launch",
"program": "${command:cmake.buildDirectory}/source/Chapter1/${command:cmake.buildType}/Chapter1.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${command:cmake.buildDirectory}",
"environment": [],
"console": "internalConsole"
},
{
"name": "Chapter2",
"type": "cppvsdbg",
"request": "launch",
"program": "${command:cmake.buildDirectory}/source/Chapter2/${command:cmake.buildType}/Chapter2.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${command:cmake.buildDirectory}",
"environment": [],
"console": "internalConsole"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment