From 1c1e51e08297e26adfc242e469c6741f5a61c0ef Mon Sep 17 00:00:00 2001 From: "shiro.lee" Date: Thu, 25 Jul 2024 17:55:07 +0800 Subject: [PATCH] fix: debug --- .vscode/launch.json | 70 +++++++++++++++++++++++++++++++++++---------- 1 file changed, 55 insertions(+), 15 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 6bd9cf3ae..062f10ab6 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -10,25 +10,65 @@ "name": "Debug executable 'rustfs'", "cargo": { "args": [ - "run", - "--", - "--access-key", - "AKEXAMPLERUSTFS", - "--secret-key", - "SKEXAMPLERUSTFS", - "--address", - "0.0.0.0:9010", - "--domain-name", - "127.0.0.1:9010", - "./target/volume/test{0...4}" + "build", + "--bin=rustfs", + "--package=rustfs" ], - // "filter": { - // "name": "rustfs", - // "kind": "bin" - // } + "filter": { + "name": "rustfs", + "kind": "bin" + } + }, + "args": [ + "--access-key", + "rustfs", + "--secret-key", + "rustfs", + "--address", + "0.0.0.0:9010", + "--domain-name", + "127.0.0.1:9010", + "/tmp/rustfs/test{0...4}" + ], + "cwd": "${workspaceFolder}" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug unit tests in executable 'rustfs'", + "cargo": { + "args": [ + "test", + "--no-run", + "--bin=rustfs", + "--package=rustfs" + ], + "filter": { + "name": "rustfs", + "kind": "bin" + } }, "args": [], "cwd": "${workspaceFolder}" }, + { + "type": "lldb", + "request": "launch", + "name": "Debug unit tests in library 'ecstore'", + "cargo": { + "args": [ + "test", + "--no-run", + "--lib", + "--package=ecstore" + ], + "filter": { + "name": "ecstore", + "kind": "lib" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + } ] } \ No newline at end of file