How to set breakpoint in javascript application?

Javascript has a debugger which can be used to set the break­points in your application.

For exam­ple, in the below code it will set the break­point after var c = a + b; is executed.

function FindBug(a, b) {
  var c  = a + b;
  debugger;
  ... 
}

Fur­ther Reading :


You may also like...