Thursday, August 21, 2014

Trigger breakpoint in Javascript

To trigger breakpoint in Javascript, you can add a 'debugger' in your code. For example:

function testing() {
    alert(123);
    debugger;
    alert(456);
}

The debugger will be triggered at runtime.

No comments:

Post a Comment

Learning System Design with Cute Animation

 This one is superb -  https://designed-to-scale.vercel.app/