From 7a0143af070628bb707fe65a349d76914798b637 Mon Sep 17 00:00:00 2001 From: Mikael Mello Date: Fri, 7 Apr 2023 19:49:01 -0700 Subject: [PATCH] Add launch action to use LLDB to attach to existing process (#111) --- .vscode/launch.json | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index b4ca91be..bf45d1b6 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -4,17 +4,18 @@ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ + { + "type": "lldb", + "request": "attach", + "pid": "${command:pickProcess}", + "name": "Debug running process" + }, { "type": "lldb", "request": "launch", "name": "Debug unit tests in library 'inquire'", "cargo": { - "args": [ - "test", - "--no-run", - "--lib", - "--package=inquire" - ], + "args": ["test", "--no-run", "--lib", "--package=inquire"], "filter": { "name": "inquire", "kind": "lib" @@ -28,11 +29,7 @@ "request": "launch", "name": "Debug example 'multiselect'", "cargo": { - "args": [ - "build", - "--example=multiselect", - "--package=inquire" - ], + "args": ["build", "--example=multiselect", "--package=inquire"], "filter": { "name": "multiselect", "kind": "example" @@ -46,11 +43,7 @@ "request": "launch", "name": "Debug example 'text_simple'", "cargo": { - "args": [ - "build", - "--example=text_simple", - "--package=inquire" - ], + "args": ["build", "--example=text_simple", "--package=inquire"], "filter": { "name": "text_simple", "kind": "example" @@ -79,4 +72,4 @@ "cwd": "${workspaceFolder}" } ] -} \ No newline at end of file +}