tracrr

Watches and logs V8 events using the internal programmatic debugger

npm install tracrr
1 downloads in the last week
4 downloads in the last month

tracrr

Watches and logs V8 events using the internal programmatic debugger

Usage:

Tracrr = require("lib/tracrr");
Tracrr.logTo(console);

Launch V8 with --expose-debug-as <name> so that Tracrr can access <name>.Debug object from within JavaScript.

Definition in V8 source: expose debug in global object Effect in V8 source: Creates an isolated Debug context that can call across to the main context

Flag can be set from command line (i.e. when launching node), or programmatically (i.e. when embedded as in Titanium Mobile)

This is a mostly undocumented feature of V8 that until now has been exclusively used to run V8's debugger test suite in JS. More documentation coming soon. For hints see source. MIT Licensed. 2013 @doublerebel

npm loves you