From c3b9e6bedf52162a48fa8f30207273547099686c Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Wed, 17 Jun 2020 23:50:29 -0500 Subject: [PATCH] Attempt to get debugging working --- .vscode/launch.json | 24 ++++++------------------ .vscode/tasks.json | 8 ++------ 2 files changed, 8 insertions(+), 24 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 489a369..e1ca4c9 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -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" + } ] } \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json index c9ce985..90e8776 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -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