1.2.3 • Published 3 years ago
cdp-gdb-bridge v1.2.3
WebAssembly on Chrome Debugger
WebAssembly Debugger for Google Chrome, node.js
CLI
Install
npm i cdp-gdb-bridgeUsage
# Launch Chrome & Debugging Proxy
> cdp-gdb-bridge
# And then, open the debugged url in launched chrome.
Page navigated.
http://localhost:8080/index.wasm
Start Loading http://localhost:8080/index.wasm...
# Now you can use debug commands like gdb
> b Main.cpp:10Supported Commands
| Syntax | |
|---|---|
| r (url) | Jump to url |
| b (FileName):(LineNumber) | Set Breakpoint |
| d (breakpoint ID | Delete Breakpoint |
| n | Step-Over |
| s | Step-In |
| u | Step-Out |
| c | Continue |
| l | Show Source File around Current Frame |
| il | Show Local Variables Name |
| ig | Show Global Variables Name |
| p (VariableName) | Evaluate Variable |
VSCode Extension
Implemented Features
- BreakPoints
- Variable Value Inspection
Support Status
| Windows | macOS | Linux | Support Version | |
|---|---|---|---|---|
| node.js | ✅ | ✅ | ✅ | v16.0+ |
| Chrome | ✅ | ✅ | ✅ | v64+ |
| FireFox | ❌ | ❌ | ❌ | |
| Safari | - | ❌ | - | |
| Edge | ❌ | - | - |