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