wnrph
wnrph

Reputation: 3393

Setting breakpoints on debug console code

Is it possible to set breakpoints on code that was entered on chrome's or firebug's debug console?

Upvotes: 0

Views: 80

Answers (1)

qwertymk
qwertymk

Reputation: 35274

sure! type this into console:

(function(){
    debugger;
    alert(0);
})();

DEMO, (open up console and re-run)

Upvotes: 2

Related Questions