Skip to content

Instantly share code, notes, and snippets.

@qaisjp
Last active October 29, 2019 01:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qaisjp/23ffb168b8e6b0c0922a6ea0aed88b7b to your computer and use it in GitHub Desktop.
Save qaisjp/23ffb168b8e6b0c0922a6ea0aed88b7b to your computer and use it in GitHub Desktop.
Computer Graphics - VS Code configuration
{
// 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": "build and debug project",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/raytracer",
"args": ["examples/example.json", "examples/example.json.ppm"],
"stopAtEntry": true, // you might wanna turn this off when you've confirmed that debugging works
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "make project",
"miDebuggerPath": "/usr/bin/gdb"
}
]
}
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "make project",
"type": "shell",
"options": {
"cwd": "${workspaceFolder}/build"
},
"command": "make",
"problemMatcher": [
"$gcc"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment