https://github.com/zavvdev/js-debug
Small environment for debugging JS code
https://github.com/zavvdev/js-debug
byte-code bytecode debug debugging ignition javascript js maglev turbofan v8 v8-javascript-engine
Last synced: about 1 month ago
JSON representation
Small environment for debugging JS code
- Host: GitHub
- URL: https://github.com/zavvdev/js-debug
- Owner: zavvdev
- Created: 2024-02-03T20:10:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-29T13:48:59.000Z (about 1 month ago)
- Last Synced: 2025-03-29T14:32:17.441Z (about 1 month ago)
- Topics: byte-code, bytecode, debug, debugging, ignition, javascript, js, maglev, turbofan, v8, v8-javascript-engine
- Language: Shell
- Homepage:
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JavaScript Debug Environment
### Prerequisites
1. Install `jsvu`. I use V8 for debug but you can use whatever engine you need. Check [documentation](https://github.com/GoogleChromeLabs/jsvu) for more info.
2. If you on Mac then install `gnu-time` utility: `brew install gnu-time`.
If you on Linux then go to `v8.sh` and replace `gtime` with `/usr/bin/time`### How to use
Run `sh v8/bc.sh file.js` to execute file.js with V8 engine using flags listed in _v8/bc.sh_. This will generate a bytecode for each function that prefixed with bc\_\_\*. Natives syntax allowed.
Run `sh v8/mc.sh file.js` to execute file.js with V8 engine using flags listed in _v8/mc.sh_. This will generate an optimized machine code for each function that prefixed with bc\_\_\* and if they were optimized either manually or my optimization compiler. Natives syntax allowed.