Six, IDEA breakpoint debugging

  1. Breaking point



    Click the left mouse button to the right of the line, and a red circular icon appears, indicating that a breakpoint has been set
  2. Debug mode running



    When running code, select Debug mode
  3. Common shortcuts for breakpoint debugging

    More commonly used are:

    F7: Skip to the next step, the code executes step by step, can enter the nested method;

    F8: to jump to the next breakpoint, the method embedded inside the method will not be executed;

    F9: the recovery program runs, if the breakpoint code below the breakpoint still has a breakpoint, then stops at the next breakpoint, from the first breakpoint to the second breakpoint to execute;

    Shift+F7: method of entering breakpoint execution;
  4. The icon corresponding to the shortcut key

  5. View the value of the variable

    Select the variable and hover over it for two seconds (the result of the execution is also displayed after the current line)