File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {
2+ "version" : " 0.2.0" ,
3+ "configurations" : [
4+ {
5+ "type" : " bun" ,
6+ "request" : " attach" ,
7+ "name" : " Attach to Bun (TUI debug)" ,
8+ "url" : " ws://localhost:8888/2dc3gzl5xot" ,
9+ "stopOnEntry" : false ,
10+ "internalConsoleOptions" : " neverOpen"
11+ }
12+ ]
13+ }
Original file line number Diff line number Diff line change 1717 - [x] 所有 Feature 现在可以通过环境变量配置, 而不是垃圾的 bun --feature
1818 - [x] 移除牢 A 的反蒸馏代码!!!
1919 - [x] 补全 web search 能力(用的 Bing 搜索)!!!
20+ - [x] 支持 Debug
2021- [ ] V5 大规模重构石山代码, 全面模块分包
2122 - [ ] V5 将会为全新分支, 届时 main 分支将会封存为历史版本
2223
@@ -66,6 +67,24 @@ bun run build
6667
6768如果遇到 bug 请直接提一个 issues, 我们优先解决
6869
70+ ## VS Code 调试
71+
72+ TUI (REPL) 模式需要真实终端,无法直接通过 VS Code launch 启动调试。使用 ** attach 模式** :
73+
74+ ### 步骤
75+
76+ 1 . ** 终端启动 inspect 服务** :
77+ ``` bash
78+ bun run dev:inspect
79+ ```
80+ 会输出类似 ` ws://localhost:8888/xxxxxxxx ` 的地址。
81+
82+ 2 . ** VS Code 附着调试器** :
83+ - 在 ` src/ ` 文件中打断点
84+ - F5 → 选择 ** "Attach to Bun (TUI debug)"**
85+
86+ > 注意:` dev:inspect ` 和 ` launch.json ` 中的 WebSocket 地址会在每次启动时变化,需要同步更新两处。
87+
6988## 相关文档及网站
7089
7190< https://deepwiki.com/claude-code-best/claude-code >
Original file line number Diff line number Diff line change 3737 "scripts" : {
3838 "build" : " bun run build.ts" ,
3939 "dev" : " bun run scripts/dev.ts" ,
40+ "dev:inspect" : " bun --inspect-wait=localhost:8888/2dc3gzl5xot run scripts/dev.ts" ,
4041 "prepublishOnly" : " bun run build" ,
4142 "lint" : " biome lint src/" ,
4243 "lint:fix" : " biome lint --fix src/" ,
You can’t perform that action at this time.
0 commit comments