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

边栏推荐
- 3D建模與處理軟件簡介 劉利剛 中國科技大學
- scope 数据导出mat
- Actual combat: basic use of Redux
- 数据治理:数据治理框架(第一篇)
- ssm+mysql二手交易网站(论文+源码获取链接)
- Data governance: data governance management (Part V)
- Leetcode top 100 questions 1 Sum of two numbers
- Set集合詳細講解
- Multi table operation - foreign key cascade operation
- One click deployment of highly available emqx clusters in rainbow
猜你喜欢

实战:redux的基本使用

小程序常用组件小结

Dynamic verification of new form items in El form; El form verifies that the dynamic form V-IF does not take effect;

Unity项目心得总结
![[QT] QT after addition, subtraction, multiplication and division, two decimal places are reserved](/img/30/c802ae9b65601832bf52e760e9962d.png)
[QT] QT after addition, subtraction, multiplication and division, two decimal places are reserved

多表操作-外键级联操作

Deeply understand the underlying implementation principle of countdownlatch in concurrent programming

Ssm+mysql second-hand trading website (thesis + source code access link)

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

Advanced cross platform application development (III): online resource upgrade / hot update with uni app
随机推荐
数据治理:元数据管理实施(第四篇)
运行时候的导包搜索路径虽然pycharm中标红但不影响程序的执行
Looking for high school student developers with similar interests
Brief description of activation function
2/15 (awk, awk conditions, awk processing design can perform additional tasks, and use awk array +for loop to realize advanced search)
教务管理系统(免费源码获取)
[Yugong series] February 2022 Net architecture class 005 ABP vNext Net core web application getting started configuration
Rust hello-word
Xuanyi maintenance manual
Dynamic verification of new form items in El form; El form verifies that the dynamic form V-IF does not take effect;
Redis数据库的部署及常用命令
El cascade echo failed; El cascader does not echo
Introduction of 3D Modeling and Processing Software Liu Ligang, Chinese University of Science and Technology
Understand several related problems in JVM - JVM memory layout, class loading mechanism, garbage collection
HCM 初学 ( 四 ) - 时间
从MLPerf谈起:如何引领AI加速器的下一波浪潮
2022.6.30-----leetcode. one thousand one hundred and seventy-five
Fluentd is easy to use. Combined with the rainbow plug-in market, log collection is faster
[SRS] use of Vhost isolated stream: push / pull Stream Address
Flutter can refresh data every time the interface comes in