当前位置:网站首页>Debug details under pycharm
Debug details under pycharm
2022-07-01 05:41:00 【Nuoyiyou ~】
1.debug Toolbar description :

2. Description of horizontal toolbar :

1) Jump to current breakpoint ( After the breakpoint, you may go to other files or lines in order to view the logic , Click this to return to the current breakpoint line )
2)step over(F8 Shortcut key ): Step through the current layer code .
3)step into(F7 Shortcut key ): Step by step , But it will go into the sub function .
4)step into my code(Alt+Shift+F7 Shortcut key ): Step by step , Only enter the sub functions of your own code , Will not enter the sub functions of the import package .
5)force step into(Alt+Shift+F7 Shortcut key ): Execute next line ignore lib And construction objects .
6)step out(Shift+F8 Shortcut key ): Return to the previous function ( That is, the... Of the lower left stack 2 That's ok ).
7)run to cursor(Alt+F9 Shortcut key ): Run directly to the next breakpoint .
8)evaluate expression: Calculation expression .

3.debug Variable area :
1)Debug During the process, we can view the real-time values of all variables and objects at any time . But the real program , Hundreds of variables , Rummage through it 1 Variables are too troublesome , We can set variables of special concern . Click... In the vertical button on the left + Number , The input variable a, The variable will appear on the top a, And highlight .- No. is to delete a variable of interest .
2) If the variables we want to focus on also have 10 individual , Add the original variables , A window shows too much tension , Click the glasses icon , Will be displayed separately .
4. skill :
1) Right click on the breakpoint of this line , stay Condition Enter the expression i==5, Run again , Will skip before 4 Time , Stop directly at i by 5 That time .
2) Or we can be rough , Change directly i Value . Let's cancel the above Condition The expression in , normal Debug, At breakpoint ,i=0, Let's right-click in the lower right variable area i, choice Set Value, hold i Change the value of to 5, Press again F8 One step operation , You can see print Out came 5 了 . Then press F8 When you go down ,i Will return to normal 1

边栏推荐
- Qt编写自定义控件-自绘电池
- LRU cache for leveldb source code analysis
- Series of improving enterprise product delivery efficiency (1) -- one click installation and upgrade of enterprise applications
- One click deployment of highly available emqx clusters in rainbow
- 第05天-文件操作函数
- 了解 JVM 中几个相关问题 — JVM 内存布局、类加载机制、垃圾回收
- QT等待框制作
- [SRS] use of Vhost isolated stream: push / pull Stream Address
- Data governance: data governance framework (Part I)
- Things generated by busybox
猜你喜欢

Leetcode top 100 question 2 Add two numbers

【QT】qt加减乘除之后,保留小数点后两位

Numeric amount plus comma; JS two methods of adding three digits and a comma to numbers; JS data formatting

Leetcode top 100 questions 1 Sum of two numbers

Set集合详细讲解

【知识点总结】卡方分布,t分布,F分布

Detailed explanation of set

Brief description of activation function

基于TI DRV8424驱动步进电机实现调速和行程控制

JDBC common interview questions
随机推荐
QT等待框制作
Data governance: data governance framework (Part I)
Ebpf cilium practice (2) - underlying network observability
Mongodb學習篇:安裝後的入門第一課
0xc000007b the application cannot start the solution normally (the pro test is valid)
Typeorm framework
Wild melon or split melon?
[SRS] use of Vhost isolated stream: push / pull Stream Address
Things generated by busybox
LRU cache for leveldb source code analysis
JDBC常见面试题
printk 调试总结
2022.6.30-----leetcode. one thousand one hundred and seventy-five
Understand several related problems in JVM - JVM memory layout, class loading mechanism, garbage collection
Mongodb learning chapter: introduction after installation lesson 1
HCM 初学 ( 四 ) - 时间
Redis database deployment and common commands
ssm+mysql二手交易网站(论文+源码获取链接)
【考研高数 自用】高数第一章基础阶段思维导图
In depth understanding of condition source code interpretation and analysis of concurrent programming