From e5bc7b29bc231be3e2de10ebe3a180c1b4ca2b52 Mon Sep 17 00:00:00 2001 From: lveyou-ux <1339484752@qq.com> Date: Wed, 30 Sep 2026 00:37:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=AF=E5=8A=A8=E5=8F=82=E6=95=B0=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/launch.json | 43 ++++++++++++------------------------ dl/tool/dl_tool_debug_info.h | 2 ++ 2 files changed, 16 insertions(+), 29 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 22807e6b..8a733370 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,44 +1,29 @@ { - // 使用 IntelliSense 了解相关属性。 - // 悬停以查看现有属性的描述。 - // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", + "inputs": [ + { + "id": "project", + "type": "pickString", + "description": "选择项目", + "options": ["dl_test", "dl_console", "dl_unit_test"] + } + ], "configurations": [ { - "name": "dl_test (Windows)", - "type": "cppvsdbg", - "request": "launch", - "program": "${workspaceFolder}/project/dl_test/res/dl_test.exe", - "args": [], - "cwd": "${workspaceFolder}/project/dl_test/res", - "console": "externalTerminal" - }, - { - "name": "dl_test (Linux)", + "name": "调试项目", "type": "lldb", "request": "launch", - "program": "${workspaceFolder}/out/linux/project/dl_test/bin/dl_test", - "args": [], - "cwd": "${workspaceFolder}/out/linux/project/dl_test/bin" + "program": "${workspaceFolder}/out/linux/project/${input:project}/bin/${input:project}", + "cwd": "${workspaceFolder}/out/linux/project/${input:project}/bin", + "terminal": "integrated" }, { "name": "HistorySim", "type": "lldb", "request": "launch", "program": "${workspaceFolder}/out/linux/project/hs/bin/HistorySim", - "args": [], "cwd": "${workspaceFolder}/out/linux/project/hs/bin", - "initCommands": [ - "command script import ${workspaceFolder}/.vscode/custom_printers.py" - ] - }, - { - "name": "dl_console", - "type": "lldb", - "request": "launch", - "program": "${workspaceFolder}/out/linux/project/dl_console/bin/dl_console", - "args": [], - "cwd": "${workspaceFolder}/out/linux/project/dl_console/bin" + "terminal": "integrated" } ] -} +} \ No newline at end of file diff --git a/dl/tool/dl_tool_debug_info.h b/dl/tool/dl_tool_debug_info.h index 2e86d4a1..c1ff16ab 100644 --- a/dl/tool/dl_tool_debug_info.h +++ b/dl/tool/dl_tool_debug_info.h @@ -15,6 +15,8 @@ #include "render/dl_factory.h" #include "render/dl_camera.h" #include "system/dl_system.h" +#include "system/dl_time.h" +#include "ui/dl_ui_manager.h" namespace dl::Tool {