GithubHelp home page GithubHelp logo

nokotan / cdp-gdb-bridge Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 1.0 2.09 MB

Debugger of WebAssembly on Chrome

Home Page: https://www.npmjs.com/package/cdp-gdb-bridge

License: MIT License

Rust 12.06% TypeScript 16.91% JavaScript 32.08% HTML 38.92% C++ 0.03%
webassembly debugging-tool

cdp-gdb-bridge's Introduction

WebAssembly on Chrome Debugger

WebAssembly Debugger for Google Chrome, node.js

CLI

Install

npm i cdp-gdb-bridge

Usage

# 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:10

Supported 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+, no workers debugging support
Chrome v64+
FireFox
Safari - -
Edge - -

cdp-gdb-bridge's People

Contributors

nokotan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

yosoymin

cdp-gdb-bridge's Issues

Configuration to specify the Chrome profile

Would be nice if ew can specify in the vscode launch.json a setting to set the Chrome profile to load when launching the wasm-chrome debugger mode. It seems Chrome Laucher library already have a setting for that purpose:

// (optional) Chrome profile path to use, if set to `false` then the default profile will be used.
// By default, a fresh Chrome profile will be created
userDataDir: string | boolean;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.