Skip to content

Instantly share code, notes, and snippets.

@ml242
Last active August 29, 2015 14:17
Show Gist options
  • Save ml242/5d75082d9a12e4e837c5 to your computer and use it in GitHub Desktop.
Save ml242/5d75082d9a12e4e837c5 to your computer and use it in GitHub Desktop.
debugging io-js
% git clone https://github.com/thlorenz/iojs-inspect-entire-stack
brew install ninja
// helpfull tip todebug:
SIGTERM flushAll() // get an exit code
flags:
"iojs --perf-basic-prof app.js"
gdb-jit generates more detailed jit info for debuggers // doesn't work
resolve-jit-symbols: library from thlorenz to debug
bsd/osx inspectors:
dtrace
dtruss // gui for dtrace
execsnoop
opensnoop
iosnoop
rwsnoop
gbd/idlb
many more man -k dtrace
cat stack.txt | rjs <pid>
iLDB
chrome://tracing/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment