javascript debugging in HTML file
问题 How can I put break points in an HTML page in javascript functions to see values of variables as lines get executed. What is the easiest way of doing so? thanks 回答1: Use the keyword " debugger; " to attempt invoking a hard breakpoint. As long as your browser has Javascript Debugging enabled, then the debugger; statement will tell it to do it's thang and you'll be in a step-by-step debugger. The Firebug extension for Firefox is by far the easiest, but Internet Explorer's new built-in "