From c2b2d12758bfc5bf67685a0b3c72e249dba3dacb Mon Sep 17 00:00:00 2001 From: exoticus Date: Thu, 9 Apr 2020 19:40:56 +0200 Subject: [PATCH] using LLDB task to debug in vscode --- .vscode/launch.json | 13 +++++++------ .vscode/tasks.json | 18 ++++++++++++++++++ 2 files changed, 25 insertions(+), 6 deletions(-) create mode 100644 .vscode/tasks.json diff --git a/.vscode/launch.json b/.vscode/launch.json index d96f406..a3e8fc6 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -5,15 +5,16 @@ "version": "0.2.0", "configurations": [ { - "name": "(Windows) Launch", - "type": "cppvsdbg", + "name": "Debug", + "type": "lldb", "request": "launch", - "program": "${workspaceRoot}/target/debug/neovide.exe", + "program": "${workspaceRoot}/target/debug/neovide", "args": [], - "stopAtEntry": false, "cwd": "${workspaceRoot}", - "environment": [], - "externalConsole": true + "env": { + "RUST_LOG": "info", + "RUST_BACKTRACE": "1" + } }, ] } \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..174416a --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,18 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "type": "cargo", + "command": "run", + "problemMatcher": [ + "$rustc" + ], + "group": { + "kind": "build", + "isDefault": true + } + } + ] +} \ No newline at end of file