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

边栏推荐
- Advanced cross platform application development (II): uni app practice
- Is it safe for a novice to open a securities account?
- 小程序常用组件小结
- Simple implementation of database connection pool
- Rust hello-word
- JDBC常见面试题
- Numeric amount plus comma; JS two methods of adding three digits and a comma to numbers; JS data formatting
- Common solutions for mobile terminals
- HDU - 1069 Monkey and Banana(DP+LIS)
- HCM 初学 ( 二 ) - 信息类型
猜你喜欢

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

Geoffrey Hinton:我的五十年深度学习生涯与研究心法

【考研高数 自用】高数第一章基础阶段思维导图

College community management system based on boot+jsp (with source code download link)

Daily code 300 lines learning notes day 11

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

2/15 (awk, awk conditions, awk processing design can perform additional tasks, and use awk array +for loop to realize advanced search)

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

tar命令

Things generated by busybox
随机推荐
码蹄集 - MT3149 · AND - 数据不是很强,暴力剪枝就能骗AC
Continuous breakthrough and steady progress -- Review and Prospect of cross platform development technology of mobile terminal
Simple implementation of database connection pool
boot+jsp的高校社團管理系統(附源碼下載鏈接)
Learn the customization and testing of fpga---ram IP from the bottom structure
JDBC常见面试题
数据治理:数据治理管理(第五篇)
加密狗资料搜集
json数据比较器
Common solutions for mobile terminals
激活函数简述
多表操作-外键级联操作
MySQL converts milliseconds to time string
Idea start view project port
Qt编写自定义控件-自绘电池
Redis database deployment and common commands
【考研高数 武忠祥+880版 自用】高数第二章基础阶段思维导图
教务管理系统(免费源码获取)
Brief description of activation function
Qt编译时,出现 first defined here,原因及解决方法