当前位置:网站首页>Idea debug debugging tutorial
Idea debug debugging tutorial
2022-04-23 03:32:00 【Jack_ joker】
debug debugging
idea Provide breakpoints debug Debugging method
What is a breakpoint : A breakpoint is a location specified in the code , When the program runs to the specified position, it is interrupted , And allow developers to view the values of various variables at this time ; When the program interrupts , The line where the breakpoint is located has not been executed , So you can go through debug Set the breakpoint to find the error where the program is located ;
Add a breakpoint with the left mouse button where you want to add a breakpoint , Then right click to select debug This procedure , Get into debug Pattern , Horizontal and vertical keys , The vertical functional areas are
Re execution debug:Crtl+F5
Resume execution , Jump to the next breakpoint :F9
Pause debug: Not usually used , So it's not common
stop it debug:Crtl+F5
Show all breakpoints :Crtl+Shift+F5
Disable breakpoints : This function is temporary , If you don't remove the breakpoint , Next time re execute debug Breakpoints are still valid ;
Horizontal Ribbon :
Return to the execution breakpoint :Alt+F10, You can jump directly from other methods to the current debug Location of program break point ,
Execute across methods :F8, Step down , No entry method , Whether it's user-defined method or library function method ;
Enter method execution :F7, When meeting the method , Don't keep going down , Instead, enter the method execution , But don't enter java Self contained library function method , such as println() Method ;
Force entry method execution :Alt+Shift+F7, Force entry method execution , Any method can enter , Whether it's a user-defined method or a library function's own method , You can enter ;
Step out : Jump out of the way , Go back to the next line of the method ;
Jump out of the frame : Jump out of the way , Go back to... But ;
Execute to the cursor position : Jump to the next breakpoint , Carry on , If there is no breakpoint debug end ;
Be careful : The horizontal ribbon also has something like a calculator , This function is to calculate the method in advance ;
At the same time, you can also right-click at the breakpoint to set the conditions for entering the breakpoint , And debugging debug Set the value of the variable in mode , The program will run according to the set variable value , however debug Then run again according to the actual variable value run;
版权声明
本文为[Jack_ joker]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220607497167.html
边栏推荐
- QT dynamic translation of Chinese and English languages
- New ORM framework -- Introduction to beetlsql
- 批量下载文件----压缩后再下载
- 2022 团体程序设计天梯赛 模拟赛 L1-7 矩阵列平移 (20 分)
- C-10 program error correction (recursive function): number to character
- 2022 group programming ladder simulation l2-1 blind box packaging line (25 points)
- L3-011 direct attack Huanglong (30 points)
- The query type of MySQL is very inefficient.
- Romantic silhouette of L2-3 of 2022 group programming ladder Simulation Competition (25 points)
- Supersocket is Use in net5 - concept
猜你喜欢
随机推荐
QT uses drag and drop picture to control and mouse to move picture
Design and implementation of redis (4): what is the event driver of redis
Deep learning notes (II) -- principle and implementation of activation function
Chapter 8 exception handling, string handling and file operation
Problem C: realize Joseph Ring with linked list
Explication détaillée des fonctions send () et recv () du programme Socket
Build websocket server in. Net5 webapi
Design and implementation of redis (2): how to handle expired keys
Section 1 array and slicing in Chapter 6
7-2 Tushare
Idea view history [file history and project history]
C-11 problem h: treasure chest 2
Test questions and some space wars
. net 5 Web custom middleware implementation returns the default picture
[microservices] (x) -- Unified gateway
"Visual programming" test paper
Fiddler use
C-10 program error correction (recursive function): number to character
Applet - more than two pieces of folding and expansion logic
Application and definition of interface