当前位置:网站首页>Idea debug according to conditional breakpoints
Idea debug according to conditional breakpoints
2022-07-19 08:41:00 【Gai Linan】
background
Programmers should often use idea Breakpoint debugging , Then when debugging , I have a need is , There is a loop in the code , Then when you cycle to a certain data , I just want to follow step by step , I've always known this function , But I haven't really used it , I finally used it once this week , I can't help but sigh that it's so easy to use , So write a blog to record .
Breakpoint debugging
Common methods
First we need to make sure that , The way to start the program is Debug Pattern , Pictured 
perhaps 
Then interrupt where you want to stop 
Next, just execute the test method , Just let the code call this class . Pictured :
Common functions
Step Into/Step Over/Step Out
- Step into: Step by step , If you encounter a subfunction, enter and continue to step in .
- Step over: In a single step , When you encounter a subfunction in a function, you will not step into the subfunction , Instead, the entire execution of the subfunction is completed before it stops , That is to say, take the whole subfunction as a step .
- Step out: When stepping into a subfunction , use step out You can execute the rest of the subfunction , And return to the previous function .
Conditional pause
Where breakpoints are set , Right click the breakpoint , You can set conditions 
After setting breakpoints according to conditions , The breakpoint will become a red dot with a question mark , And then go ahead and do it , When there are qualified data , Will stop . Very convenient
边栏推荐
- Li Kou 1669 merges two linked list notes
- LeetCode 0116.填充每个节点的下一个右侧节点指针
- 【CTF】pwn2_sctf_2016
- 【手写数字识别】基于Lenet网络实现手写数字识别附matlab代码
- TP5微信提现 商家转账到零钱(复制皆可用)
- How to set preferences when developing esp8266 and esp32 with Arduino
- Redis常用数据类型——Redis列表(List)和Redis 集合(Set)
- JS learning notes 01-03 - Reference of this, global scope, method
- Redis6新数据类型——HyperLogLog
- 力扣912排序数组笔记
猜你喜欢

Solutions to license invalidation caused by MATLAB update

把HBuilderX的主题变成vscode

BCG 使用之CBCGPEdit控件

创建静态库的基本步骤

Leetcode sword finger offer II 041 Average value of sliding window: low space consumption solution

1. Flask Foundation

Collation of exercises of shallow neural networks in the third week of in-depth study

Enjoy JVM -- knowledge about GC garbage collection

New data type of redis bitmaps

Eureka Basics
随机推荐
深度学习第三周Shallow Neural Networks习题整理
Solutions to license invalidation caused by MATLAB update
Finishing of key concepts on deep neural networks exercises in the fourth week of in-depth learning
【手写数字识别】基于Lenet网络实现手写数字识别附matlab代码
JS学习笔记14-15:JS数组及数组字母量
【LeetCode】通用操作总结
JS learning notes 09-12: prototype objects, foreach+tostring and recycle bin
Redis6 new data type - hyperloglog
BCG 使用之CBCGPEdit控件
What is memory overflow
HCIP --- OSPF的综合实验
Baidu Apollo
Redis常用数据类型——Redis列表(List)和Redis 集合(Set)
LeetCode 0116.填充每个节点的下一个右侧节点指针
凸面镜面3D玻璃轮廓扫描
mongodb $符号的神奇用法+mongo数据类型
【无标题】
46、IO模型
Redis常用数据类型——哈希(Hash)和有序集合 Zset(sorted set)
ES6学习-函数(严格模式,高阶函数,闭包)