fix issues/79: F5 直接调试

This commit is contained in:
arc
2026-04-04 14:57:31 +08:00
parent 6a3fd223fc
commit 840d4574da
2 changed files with 40 additions and 12 deletions

23
.vscode/launch.json vendored
View File

@@ -1,13 +1,14 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "bun",
"request": "attach",
"name": "Attach to Bun (TUI debug)",
"url": "ws://localhost:8888/2dc3gzl5xot",
"stopOnEntry": false,
"internalConsoleOptions": "neverOpen"
}
]
"version": "0.2.0",
"configurations": [
{
"type": "bun",
"request": "attach",
"name": "Attach to Claude Code",
"url": "ws://localhost:8888/2dc3gzl5xot",
"preLaunchTask": "Start Claude Code TUI",
"stopOnEntry": false,
"internalConsoleOptions": "neverOpen"
}
]
}

27
.vscode/tasks.json vendored Normal file
View File

@@ -0,0 +1,27 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Start Claude Code TUI",
"type": "shell",
"command": "bun run dev:inspect",
"isBackground": true,
"presentation": {
"reveal": "always",
"focus": true,
"panel": "dedicated",
"clear": true
},
"problemMatcher": {
"pattern": {
"regexp": "^$"
},
"background": {
"activeOnStart": true,
"beginsPattern": ".*Bun Inspector.*",
"endsPattern": ".*Listening:.*"
}
}
}
]
}