Shortcut keys for idea breakpoint debugging on mac

Shortcut keys for IDEA breakpoint debugging under mac system

Note: If you want to use the f1-f12 keys on the keyboard, you need to press the fn key and the required key together, otherwise it is a function key

  • control+D: Turn on debugging
  • f8: skip to the next step (big jump, will not enter the method)
  • shift+f8: skip to the next breakpoint
  • f7: Enter the code (that is, enter the method, as long as there is a method in this line, it will enter all the methods in turn, but the shortcut key that is locked in the java jar package cannot enter, such as HashMap)
  • (Option)+shift+f7: Force entry code (some codes will not enter, use this shortcut key to force entry, such as HashMap, directly press f7 will not enter, but press shift+f7 to enter)

F7, f8 can be viewed like this:

If for the current line of code, you don’t want to see the implementation of the method in this line, just press f8 to skip to the next line

If you want to see the implementation of some methods in this line, press f7 and you will jump to the methods in this line

However, if a breakpoint is set in a method in a certain line, then when you press f8, it will jump directly to the breakpoint position of this method

  • command+f2: stop

Guess you like

Origin blog.csdn.net/weixin_44062380/article/details/108449944