"debugger" triggers a JS breakpoint in Chrome dev tools

by hunab

HTML

<a href="#">clicking on this triggers a breakpoint in the chrome dev tools</a>

JavaScript

document.querySelector( 'a' ).addEventListener( 'click', function( event ) {
    var lv = Function.prototype.toString();
    debugger // <-- breakpoint
} );