当前位置:网站首页>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

边栏推荐
- Idea start view project port
- Introduction to 3D modeling and processing software Liu Ligang University of science and technology of China
- 【QT】qt加减乘除之后,保留小数点后两位
- JDBC common interview questions
- LRU cache for leveldb source code analysis
- rust猜数字游戏
- [QT] QT after addition, subtraction, multiplication and division, two decimal places are reserved
- Understand several related problems in JVM - JVM memory layout, class loading mechanism, garbage collection
- Using nocalhost to develop microservice application on rainbow
- HDU - 1024 Max Sum Plus Plus(DP)
猜你喜欢

El cascade echo failed; El cascader does not echo

Mongodb learning chapter: introduction after installation lesson 1

JDBC common interview questions

如何创建一个根据进度改变颜色的进度条

教务管理系统(免费源码获取)
Educational administration management system of SSM (free source code)

C语言初阶——牛客网精选好题

Typeorm framework

Continuous breakthrough and steady progress -- Review and Prospect of cross platform development technology of mobile terminal

OneFlow源码解析:算子签名的自动推断
随机推荐
Unity uses SQLite
One click deployment of highly available emqx clusters in rainbow
Mongodb learning chapter: introduction after installation lesson 1
Ebpf cilium practice (2) - underlying network observability
CentOS 7 installed php7.0 using Yum or up2date
ssm+mysql二手交易网站(论文+源码获取链接)
Summary of common components of applet
Introduction of 3D Modeling and Processing Software Liu Ligang, Chinese University of Science and Technology
Dynamic verification of new form items in El form; El form verifies that the dynamic form V-IF does not take effect;
新手在挖财开通证券账户安全吗?
Fluentd is easy to use. Combined with the rainbow plug-in market, log collection is faster
输入一个表达式(用字符串表示),求这个表达式的值。
College community management system based on boot+jsp (with source code download link)
Qt编写自定义控件-自绘电池
How to create a progress bar that changes color according to progress
Understand several related problems in JVM - JVM memory layout, class loading mechanism, garbage collection
Actual combat: basic use of Redux
Use and principle of wait notify
Brief description of activation function
Mongodb学习篇:安装后的入门第一课