Mostly the same browser as Safari, but Safari is better IMHO. share|improve this answer edited Jul 18 '12 at 3:20 Peter Mortensen 10.4k1372108 answered Jun 13 '09 at 14:54 kuy 69438 add a comment| up vote 2 down vote In addition to You should see the watched values change from undefined to a value as you step through each function. Safari Develop Menu Go to Safari, Preferences, Advanced in the main menu. Source
Check "Enable Show Develop menu in menu bar". Watch expressions While debugging, you often want to see the value of complex expressions or objects that are buried in the DOM. However, it is hard to follow the logic sometimes when the code is in a single block. Starting and Stopping the Debugger When you first open the F12 tools and click the Script tab, your code appears on the left and the console on the right.
If you've tried doing that, you know that it's not a very good approach. Pause execution, but only if... This means the condition did not result in a truthy value. Debugging Java Doing this couldn't be easier, just type the line number into the quick search box, preceded by the pound sign, as seen in the screen shot on the right.