Secrete JavaScript Debugger in Safari

First in Safari go to the Develop menu and select "Start Debugging JavaScript" from the drop down.
Next you'll want to add a call to debugger in your javaScript like this.

 
function onSomeThing() {
  debugger;
}
 

You will then be able to run your page and have the Safari JavaScript debugger add a break point where your debugger call is placed.

Leave a Reply

You must be logged in to post a comment.