当前位置:网站首页>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
边栏推荐
- Application and definition of interface
- 2022 团体程序设计天梯赛 模拟赛 1-8 均是素数 (20 分)
- Database SQL -- simulate inserting a large amount of data, importing / exporting database scripts, timestamp conversion and database basics
- JS changes the words separated by dashes into camel style
- socket编程 send()与 recv()函数详解
- 2022 团体程序设计天梯赛 模拟赛 L1-7 矩阵列平移 (20 分)
- C abstract class
- 全新的ORM框架——BeetlSQL介绍
- Problem C: Hanoi Tower III
- 2022 团体程序设计天梯赛 模拟赛 L2-1 盲盒包装流水线 (25 分)
猜你喜欢

Codeforces Round #784 (Div. 4)題解 (第一次AK cf (XD

Punch in: 4.22 C language chapter - (1) first knowledge of C language - (11) pointer

Unity games and related interview questions

Redis(17) -- Redis缓存相关问题解决

2022 团体程序设计天梯赛 模拟赛 L2-4 哲哲打游戏 (25 分)

Flink customizes the application of sink side sinkfunction

C set

关于idea调试模式下启动特别慢的优化

JS - accuracy issues

Unity knowledge points (ugui 2)
随机推荐
Supersocket is Use in net5 - startup
The content of the website is prohibited from copying, pasting and saving as JS code
Problem C: Hanoi Tower III
Three column layout (fixed width on both sides in the middle and fixed width on both sides in the middle)
集合之List接口
Database SQL -- simulate inserting a large amount of data, importing / exporting database scripts, timestamp conversion and database basics
Advanced sorting - fast sorting
Detailed description of MySQL index [B + tree index, hash index, full-text index, overlay index]
C interface
Supersocket is Used in net5 - command
Explication détaillée des fonctions send () et recv () du programme Socket
JS changes the words separated by dashes into camel style
Using jsonserialize to realize data type conversion gracefully
Section 1 array and slicing in Chapter 6
Development record of primary sensitive word detection
2021-08-31
Commonly used classes
月薪10k-20k都无法回答的事务问题,你会吗?
Batch download of files ---- compressed and then downloaded
Problem a: face recognition