Skip to content

F5 直接调试 #79

@01000100GT

Description

@01000100GT

.vscode/tasks.json 内容:

{
	"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:.*"
				}
			}
		}
	]
}

.vscode/launch.json

{
	"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"
		}
	]
}

这样即可F5 直接调试.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions