添加vscode工作区调试启动及预构建任务、Intellisense感知引擎文件索引关联配置

This commit is contained in:
LuChiChick committed 2026-10-27 10:27:40 +08:00
1 parent affb9cc340
commit 14b18d5c39
3 files changed
+83

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/Components/Application/Inc",
"${workspaceFolder}/Components/Main/Inc",
"${workspaceFolder}/Components/PlotView/Inc",
"${workspaceFolder}/Components/Shared/Inc",
"${workspaceFolder}/Components/SignalPanel/Inc",
"${workspaceFolder}/Components/TabBar/Inc",
"${workspaceFolder}/Components/ToolBar/Inc",
"${workspaceFolder}/Resources/Inc",
"${workspaceFolder}/Utilities/Inc",
"${workspaceFolder}/**"
],
"defines": [
"UNICODE",
"_UNICODE"
],
"cStandard": "c17",
"cppStandard": "c++17"
}
],
"version": 4
}
+40
View File
@@ -0,0 +1,40 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "构建并调试",
"type": "cppdbg",
"request": "launch",
"preLaunchTask": "project_debug_build_task", // 预构建任务
"program": "${workspaceFolder}\\Build\\Debug\\Target.exe", // 调试目标
"args": [ // 调试附加参数
],
"stopAtEntry": false,
"cwd": "${workspaceFolder}", // 工作目录
"environment": [],
"externalConsole": false,
"setupCommands": [
{
"description": "启用 GDB 美化打印 (Pretty-Printing)",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "设置主机字符集为 UTF-8 (适配终端)",
"text": "set host-charset UTF-8",
"ignoreFailures": true
},
{
"description": "设置目标窄字符集为 GBK (匹配 -fexec-charset=GBK)",
"text": "set target-charset GBK",
"ignoreFailures": true
},
{
"description": "设置目标宽字符集为 UTF-16LE (匹配 -fwide-exec-charset=UTF-16LE)",
"text": "set target-wide-charset UTF-16LE",
"ignoreFailures": true
}
]
}
]
}
+17
View File
@@ -0,0 +1,17 @@
{
"tasks": [
{
"label": "project_debug_build_task", //定义的Task标签
"type": "shell", //Task执行的类型
"options": {
"cwd": "${workspaceFolder}" // 工作目录
},
"command": "make", //运行的命令
"args": [ // 附加参数
"debug",
"-j16"
],
}
],
"version": "2.0.0"
}