From 6febaeda1aa267b848fb0598193fc2a918aea125 Mon Sep 17 00:00:00 2001 From: Jan Niklas Hasse Date: Mon, 19 Oct 2020 18:27:52 +0200 Subject: [PATCH] Add debug configurations for VSCode --- .vscode/launch.json | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..8af86bb --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,37 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "cppdbg", + "preLaunchTask": "build", + "request": "launch", + "program": "${workspaceRoot}/build/unittest", + "name": "unittest (C/C++ extension)", + "cwd": "${workspaceRoot}/build", + "setupCommands": [ + { + "text": "-enable-pretty-printing", + "description": "enable pretty printing", + "ignoreFailures": true + }, + ] + }, + { + "type": "lldb-mi", + "request": "launch", + "name": "unittest (CodeLLDB extension)", + "target": "./build/unittest", + "cwd": "${workspaceRoot}" + }, + { + "name": "unittest (Native Debug extension)", + "type": "gdb", + "request": "launch", + "target": "./build/unittest", + "cwd": "${workspaceRoot}" + } + ] +}