From 56e0907609cbb1719cba0e36cc9762d5bc33ea13 Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Mon, 14 Jul 2025 22:46:40 +0800 Subject: [PATCH] Update launch configurations --- .vscode/launch.json | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index f1d1eff..af85601 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -2,7 +2,7 @@ "version": "0.2.0", "configurations": [ { - "name": "开始Debug", + "name": "Debug chsrc", "type": "cppdbg", "request": "launch", "program": "${workspaceFolder}/chsrc-debug", @@ -29,6 +29,33 @@ "ignoreFailures": true } ] + }, + + { + "name": "Debug framework", + "type": "cppdbg", + "request": "launch", + "program": "${workspaceFolder}/fw", + "args": [], + "preLaunchTask": "测试 framework", + "stopAtEntry": true, + "cwd": "${workspaceFolder}", + "environment": [], + "externalConsole": false, + "MIMode": "gdb", + // "miDebuggerPath": "/path/to/gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + }, + { + "description": "Set Disassembly Flavor to Intel", + "text": "-gdb-set disassembly-flavor intel", + "ignoreFailures": true + } + ] } ] }