From efa42ea84960890a4f828e808e2162b8fdff26de Mon Sep 17 00:00:00 2001 From: Changqing Jing Date: Fri, 6 Jun 2025 18:13:23 +0800 Subject: [PATCH 1/2] Add vscode debug example --- docs/launch.example.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 docs/launch.example.json diff --git a/docs/launch.example.json b/docs/launch.example.json new file mode 100644 index 0000000..462f200 --- /dev/null +++ b/docs/launch.example.json @@ -0,0 +1,14 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "type": "node", + "request": "launch", + "name": "Launch Program", + "skipFiles": ["/**"], + "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", + "args": ["--timeout", "10000", "--colors", "${workspaceFolder}/dist/tests/**/*.js"], + "outFiles": ["${workspaceFolder}/dist/**/*.js"] + } + ] +} From 05ff93c116493a8e17ec971b45235c083a735a71 Mon Sep 17 00:00:00 2001 From: Changqing Jing Date: Fri, 6 Jun 2025 18:16:51 +0800 Subject: [PATCH 2/2] Fix --- docs/launch.example.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/launch.example.json b/docs/launch.example.json index 462f200..f194105 100644 --- a/docs/launch.example.json +++ b/docs/launch.example.json @@ -7,7 +7,12 @@ "name": "Launch Program", "skipFiles": ["/**"], "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", - "args": ["--timeout", "10000", "--colors", "${workspaceFolder}/dist/tests/**/*.js"], + "args": [ + "--timeout", + "10000", + "--colors", + "${workspaceFolder}/dist/tests/**/*.js" + ], "outFiles": ["${workspaceFolder}/dist/**/*.js"] } ]