Last active
October 29, 2019 01:49
-
-
Save qaisjp/23ffb168b8e6b0c0922a6ea0aed88b7b to your computer and use it in GitHub Desktop.
Computer Graphics - VS Code configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// 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" | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// 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