Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there keyboard shortcuts for the Safari debugger?

Firebug and eclipse both let me step through code using function keys. Does Safari have equivalent capabilities?

like image 420
morgancodes Avatar asked Sep 08 '10 17:09

morgancodes


People also ask

What is the keyboard shortcut for run the debugger?

The shortcut key is Alt+F12, R. You can position your cursor anywhere in your code to instruct the debugger to run from the current execution point to the line on which the cursor is positioned.

How do I open debugger in Safari?

Enable the Develop MenuChoose Safari > Preferences, and click Advanced. At the bottom of the pane, select the “Show Develop menu in menu bar” checkbox. Choose Develop > Show Web Inspector.

How do I use developer tools in Safari?

Apple Safari To do that, go into Safari's preferences (Safari Menu > Preferences) and select the Advanced Tab. Once that menu is enabled, you will find the developer console by clicking on Develop > Show Javascript Console. You can also use the shortcut Option + ⌘ + C .

Does Command Shift V work on Safari?

Command + Shift + VThis shortcut is a life-saver for anyone who regularly works in Safari. This is the shortcut for “Paste and Match Style,” which basically means you can copy and paste something without its previous formatting.


2 Answers

The Scripts Debugger was updated to support some popular keyboard shortcuts:

  • Continue — F8 or Command-/ on a Mac or Control-/ on other platforms.
  • Step Over — F10 or Command- on a Mac or Control- on other platforms.
  • Step Into — F11 or Command-; on a Mac or Control-; on other platforms.
  • Step Out — Shift-F11 or Shift-Command-; on a Mac or Shift-Control-; on other platforms.
  • Next Call Frame — Control-. on all platforms.
  • Previous Call Frame — Control-, on all platforms.
  • Evaluate Selection When on a Breakpoint — Shift-Command-E on a Mac or Shift-Control-E on other platforms.

Credit goes to: http://webkit.org/blog/829/web-inspector-updates/

like image 161
Cristian Sanchez Avatar answered Sep 20 '22 17:09

Cristian Sanchez


F1 in the Web Inspector shows a help screen with all the keys. (Safari version 5.1.2)

like image 41
Matt Avatar answered Sep 24 '22 17:09

Matt