bytecodealliance / bytecodealliance/ComponentizeJS
Debugger Integration
- 主要語言
- Rust
- 星號
- 391
- 分支
- 53
- 平均合併
- 3 天 5 小時
- 30 天內合併 PR
- 1
描述
Brought up at CTW - Spidermonkey has a debugger API that we should figure out the right integration for.
Unfortunately it does not include a debugging protocol itself, so one would need to be implemented on top of WASI sockets or otherwise. Apparently VSCode solved this for Python using a character device on preview1 to handle the V8 debugging protocol.
The debugging that needs to be handled is stepping through the JS code, when yielding through to external component model import calls, I suppose this would suspend the entire debugging interface while the external call is made, then reinitiate the debugging interface after that. This seems fine as far as I can tell.
We could possibly even have a first-class world import for debugging support, by exposing the world for debug builds only, and then relying on hosts that support the debugger protocol imports and exports, as an alternative to implementing it on top of wasi sockets.
Should be a really interesting project!
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
未指定檔案、測試或進入點。首先比較 SpiderMonkey 的偵錯器 API 與 VSCode Python/V8 方案,以及提議的 WASI-socket 或 first-class world-import 選項;當選定一種支援逐步執行 JavaScript 並處理外部 component model import 呼叫的整合方案時,即視為完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript, rust, vscode, wasm
- 領域
- developer-experience, devtools
- Issue 類型
- 功能
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 20/100