It's called "debugger".
Just place that command anywhere in your javascript code. When your page loads, execution will stop on the line where you placed debugger. This works on ...
- Firefox with firebug installed
- Internet Explorer with the Script Debugger installed
var myvar="this is myvar";
// execution stops here and the debugger window appears
debugger;
alert(myvar);
No comments:
Post a Comment