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 {