On Mon, Oct 26, 2015 at 10:06 AM, Deepak Subramanian
<[email protected]> wrote:
> Could you give me a very short sample of a debugListener.
A very simple example:
// Flags: --expose_debug_as=debug
debug.Debug.setListener(listener);
debug.Debug.setBreakPoint(main);
main();
function listener(evt, state, info) {
if (evt !== debug.Debug.DebugEvent.Break) return;
state.prepareStep(); // defaults to StepIn
}
function main() {
// main program goes here
}
--
--
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
---
You received this message because you are subscribed to the Google Groups
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.