Skip to content

Instantly share code, notes, and snippets.

@Yardanico Yardanico/launch.json Secret
Created Mar 25, 2020

Embed
What would you like to do?
// launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}/${fileBasenameNoExtension}",
"args": [],
"preLaunchTask": "nimbuild",
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "nim-gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
}
]
}
// tasks.json
{
"version": "2.0.0",
"tasks": [
{
"label": "nimbuild",
"type": "shell",
"command": "/home/dian/.nim/bin/nim",
"args": [
"c",
"--debugger:native",
"${file}"
],
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.