Install v8-debug
Install v8-debug
Apr 11, 2021
·
1 min read
·
71
Words
·
-Views
-Comments
To understand JavaScript deeply you eventually dive into V8. The
v8-debugshell helps inspect bytecode, optimizations, etc. Here’s how I install it.
Installation
Some suggest brew install v8, but that build lacked --print-ast for me, so I don’t recommend it.
npm install -g jsvu- Run
jsvuand select V8 debug. Re-runningjsvuupdates the installed V8 versions. - Add to
.bashrc/.zshrc:The alias makes launching the shell easier.export PATH="$HOME/.jsvu:$PATH" alias d8='v8-debug'

