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

边栏推荐
- 输入一个表达式(用字符串表示),求这个表达式的值。
- Geoffrey Hinton:我的五十年深度学习生涯与研究心法
- [medical segmentation] u2net
- Daily code 300 lines learning notes day 11
- How to create a progress bar that changes color according to progress
- 【医学分割】u2net
- [excel] column operation, which performs specific column for data in a cell, such as text division by comma, colon, space, etc
- Data governance: metadata management implementation (Part IV)
- Brief description of activation function
- HCM 初学 ( 四 ) - 时间
猜你喜欢

MySQL数据迁移遇到的一些错误

实战:redux的基本使用
![[medical segmentation] u2net](/img/b3/b1d188216310fe1217e360ac56af3b.jpg)
[medical segmentation] u2net

boot+jsp的高校社团管理系统(附源码下载链接)

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

Mongodb學習篇:安裝後的入門第一課

HCM 初学 ( 三 ) - 快速输入PA70、PA71 浏览员工信息PA10
Educational administration management system of SSM (free source code)

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

Series of improving enterprise product delivery efficiency (1) -- one click installation and upgrade of enterprise applications
随机推荐
Using nocalhost to develop microservice application on rainbow
HDU - 1024 Max Sum Plus Plus(DP)
HCM 初学 ( 二 ) - 信息类型
如何添加葫芦儿派盘
Unity 使用Sqlite
[Yugong series] February 2022 Net architecture class 005 ABP vNext Net core web application getting started configuration
Mongodb學習篇:安裝後的入門第一課
Use and principle of AQS related implementation classes
Printk debugging summary
第05天-文件操作函数
C语言初阶——实现扫雷游戏
导数的左右极限和左右导数的辨析
bat操作ftp上传下载命令
Xuanyi maintenance manual
[ffmpeg] [reprint] image mosaic: picture in picture with wheat
Design and application of immutable classes
Numeric amount plus comma; JS two methods of adding three digits and a comma to numbers; JS data formatting
激活函数简述
LRU cache for leveldb source code analysis
Use and principle of wait notify