Attempt to get debugging working

This commit is contained in:
SeanOMik 2020-06-17 23:50:29 -05:00
parent 3630005e19
commit c3b9e6bedf
No known key found for this signature in database
GPG Key ID: FA4D55AC05268A88
2 changed files with 8 additions and 24 deletions

24
.vscode/launch.json vendored
View File

@ -5,24 +5,12 @@
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"name": "Debug Nim Project",
"type": "gdb",
"request": "launch",
"program": "${workspaceFolder}/src/client.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "C:/mingw/bin/gdb.exe",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
},
"target": "./src/client.exe",
"cwd": "${workspaceRoot}",
"valuesFormatting": "parseText"
}
]
}

8
.vscode/tasks.json vendored
View File

@ -4,13 +4,9 @@
"version": "2.0.0",
"tasks": [
{
"taskName": "Run client.nim",
"command": "nim",
"args": ["c", "-d:ssl", "-r", "src/client.nim"],
"options": {
"cwd": "${workspaceRoot}"
},
"label": "Build Nim Project",
"type": "shell",
"command": "nim compile -d:ssl -d:debug --debugger:native ./src/client.nim",
"group": {
"kind": "build",
"isDefault": true