当前位置:网站首页>Necessary for beginners: debug breakpoint debugging skills in idea and common breakpoint skills
Necessary for beginners: debug breakpoint debugging skills in idea and common breakpoint skills
2022-07-26 10:00:00 【Coexistence source of beauty and strength】
IDEA Medium debug Breakpoint debugging techniques
1. How to break points and cancel breakpoints
Click the position of the red arrow to interrupt Cancel twice
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-SfZEMSoX-1647834958999)(uniapp Basic knowledge of .assets/image-20220319122731365.png)]](/img/72/29a0a6c62e88e97eaa6576311dfde4.png)
2. Execution Breakpoints
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-EFxydfjD-1647834959001)(uniapp Basic knowledge of .assets/image-20220319122820184.png)]](/img/0d/9d6df850fbdcd46cf855f37ff10a4f.png)
3. Enter the breakpoint
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-9QNYCc1t-1647834959002)(uniapp Basic knowledge of .assets/image-20220319122852523.png)]](/img/ad/20c9b09b7507d1f3a7620f49df9688.png)
1. Horizontal button
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-AAucsDl6-1647834959002)(uniapp Basic knowledge of .assets/image-20220319124625859.png)]](/img/33/fee44b32ac4fb76fdd47704c872bb8.png)
1. Return to the interface where the current breakpoint is located
2. Execute down line by line according to the current breakpoint – Will not enter the method
3. Executing down line by line according to the current breakpoint will enter the method -- But we can only enter the method written by ourselves --java Methods in class libraries cannot enter
4. Executing down line by line according to the current breakpoint will enter the method -- But we can enter our own method -- You can also enter java Methods in class libraries – Any way
5. Directly execute the current method , Go back to the end of the calling method
6. Directly execute the current method , Go back to the calling method
7. Return to the interface where the current breakpoint is located and perform the next step
8. Calculator – You can check the later running results during the program running
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-Yd6qYM9S-1647834959003)(uniapp Basic knowledge of .assets/image-20220319124036577.png)]](/img/ce/39aee37a80a996280cb653ae4a9e6b.png)
2. Vertical button
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-QjksbCzu-1647834959003)(uniapp Basic knowledge of .assets/image-20220319124642494.png)]](/img/2b/a69f89dffa934a6c474d4b3480132f.png)
1. Rerun program
2. Enter the next breakpoint to execute
3.debug Mode paused — Generally do not use
4. To terminate the program
5. View all current breakpoints
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-321uSPDG-1647834959004)(uniapp Basic knowledge of .assets/image-20220319124921790.png)]](/img/f2/290f76e47f3f1e784e9702d5059243.png)
6. Invalidate the current breakpoint – Double click restore
Common techniques for breakpoints
1. Set conditions for breakpoints
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-7CGIccxj-1647834959004)(uniapp Basic knowledge of .assets/image-20220319125359101.png)]](/img/5f/cafdf6b7cb7ed27f995e3671396a1d.png)
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-jYX5T1ta-1647834959005)(uniapp Basic knowledge of .assets/image-20220319125416329.png)]](/img/8d/e7b4c858c9b90b0450e3458a85da45.png)
2. Values can be dynamically modified – But only once
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-B6l4iU5Y-1647834959006)(uniapp Basic knowledge of .assets/image-20220319125613722.png)]](/img/28/35f48e302c076add84f0b1ae107838.png)
Use breakpoints to regulate threads – Set to thread mode
1. First open thread The breakpoint thread is starting debug
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-hE3QSDVs-1647834959006)(uniapp Basic knowledge of .assets/image-20220319125814627.png)]](/img/d3/7816e12a3b27cfbd4dacfed1e190d9.png)
2. When executing a thread, select the thread you want to execute
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-TbeW5sHx-1647834959007)(uniapp Basic knowledge of .assets/image-20220319130030674.png)]](/img/25/539cc4e1bb7015feaba48ff1736df0.png)
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-5buViNiI-1647834959008)(uniapp Basic knowledge of .assets/image-20220319130100915.png)]](/img/c4/2cca877a00df66238733ae782e4621.png)
matters needing attention
1.debug It is best to enable the main program when debugging breakpoints
2. If you need to output the value, you'd better output the value in advance , For the convenience of the back debug Debugging and going to the next step
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-ZsWl5BzW-1647834959008)(uniapp Basic knowledge of .assets/image-20220319122111116.png)]](/img/86/7d54d39f4139d8440c5a10e91dcd56.png)
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-aoye0mmG-1647834959009)(uniapp Basic knowledge of .assets/image-20220319122231664.png)]](/img/3f/f3a83d8169e78253ff81b2d751d6fe.png)
Enter this cycle
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-Dje7r57a-1647834959010)(uniapp Basic knowledge of .assets/image-20220319122255771.png)]](/img/4c/0e86bf981e2192a0bc2b0b54eeb0b1.png)
边栏推荐
- In Net 6.0
- MySQL 5.7.25 source code installation record
- Nodejs service background execution (forever)
- Modern medicine in the era of "Internet +"
- Vs2019 configuring opencv
- 服务器内存故障预测居然可以这样做!
- [information system project manager] summary of essence of high-level series for the first time
- Meeting OA project (III) -- my meeting (meeting seating and submission for approval)
- 30分钟彻底弄懂 synchronized 锁升级过程
- MQTT X CLI 正式发布:强大易用的 MQTT 5.0 命令行工具
猜你喜欢

Customize permission validation in blazor

Meeting OA project (III) -- my meeting (meeting seating and submission for approval)

Mqtt x cli officially released: powerful and easy-to-use mqtt 5.0 command line tool

Use of tabbarcontroller

Applet record

Principle analysis and source code interpretation of service discovery

MySQL 5.7.25 source code installation record

Draw arrows with openlayer

Fuzzy PID control of motor speed

Unstoppable, pure domestic PCs have been in place, and the monopoly of the U.S. software and hardware system has been officially broken
随机推荐
新增市场竞争激烈,中国移动被迫推出限制性超低价5G套餐
Time series anomaly detection
时间序列异常检测
WARNING: [pool www] server reached pm. max_ children setting (5), consider raising it
Mo team learning summary (II)
Installation and use of cocoapods
编写一个在bash / shell 和 PowerShell中均可运行的脚本
Unstoppable, pure domestic PCs have been in place, and the monopoly of the U.S. software and hardware system has been officially broken
[fluorescent character effect]
Meeting OA project (III) -- my meeting (meeting seating and submission for approval)
Azkaban【基础知识 01】核心概念+特点+Web界面+架构+Job类型(一篇即可入门Azkaban工作流调度系统)
Network flow learning notes
面试突击68:为什么 TCP 需要 3 次握手?
El table implements adding / deleting rows, and a parameter changes accordingly
服务发现原理分析与源码解读
Distributed network communication framework: how to publish local services into RPC services
Wechat applet development
Why does new public chain Aptos meet market expectations?
SSG框架Gatsby访问数据库,并显示到页面上
MySQL function