Skip to content

Instantly share code, notes, and snippets.

@syg
Created March 10, 2014 22:17
Show Gist options
  • Save syg/9475646 to your computer and use it in GitHub Desktop.
Save syg/9475646 to your computer and use it in GitHub Desktop.
var g = newGlobal();
var dbg = new Debugger;
g.eval("function f(d) { g(d); }");
g.eval("function g(d) { h(d); }");
g.eval("function h(d) { while (d) { } return d; }");
timeout(1, function () {
dbg.addDebuggee(g);
var frame = dbg.getNewestFrame();
while (frame) {
print(frame.repr);
frame = frame.older;
}
return false;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment