当前位置:网站首页>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
边栏推荐
- 批量下載文件----壓縮後再下載
- Section 1 array and slicing in Chapter 6
- Learn about I / O flow and file operations
- Idea view history [file history and project history]
- poi根据数据创建导出excel
- JS - accuracy issues
- Chapter 8 exception handling, string handling and file operation
- Three column layout (fixed width on both sides in the middle and fixed width on both sides in the middle)
- AWS from entry to actual combat: creating accounts
- Punch in: 4.22 C language chapter - (1) first knowledge of C language - (11) pointer
猜你喜欢

Log4net is in Net core usage

TCP three handshakes and four waves

MySQL keyword group_ Concat, combined connection query

Applet - WXS

IDEA查看历史记录【文件历史和项目历史】
![[microservices] (x) -- Unified gateway](/img/f8/0c4516a802086cbe4031183b27a775.jpg)
[microservices] (x) -- Unified gateway

Supersocket is Used in net5 - command

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

Unity Basics

Codeforces Round #784 (Div. 4)题解 (第一次AK cf (XD
随机推荐
The fourth operation
Quartz. Www. 18fu Used in net core
When migrating tslib_ setup: No such file or directory、ts_ open: No such file or director
Download and configuration of idea
Advanced sorting - fast sorting
Design and implementation of redis (6): how redis achieves high availability
2022 group programming ladder simulation l2-1 blind box packaging line (25 points)
Scenario Title: how does system a use the page of system B
C abstract class
2022 group programming ladder simulation match 1-8 are prime numbers (20 points)
socket编程 send()与 recv()函数详解
批量下載文件----壓縮後再下載
Three types of cyclic structure
Problem B: small challenge
Docker pulls MySQL and connects
Unity basics 2
String input problem
Fiddler use
Cefsharp stores cookies and reads cookies
移植tslib时ts_setup: No such file or directory、ts_open: No such file or director