DevTools Debugger
by bgrins
HTML
<h1>Open the debugger</h1>
<button>Trigger debugger statement</button>
JavaScript
function a() {
b();
}
function b() {
c();
}
function c() {
d();
}
function d() {
secondToLastCall();
}
function secondToLastCall() {
finalCallIsLong();
}
function finalCallIsLong() {
var x = 1;
var y = "hi";
var document = window.document;
var body = document.body;
var x = { get y() 42, set y(f) "it's a trap" };
function innerCall() {
var y = 'there';
var foo = 'bar';
debugger;
}
innerCall();
}
document.querySelector("button").onclick = function() {
a();
}
a();