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

边栏推荐
- win10、win11中Elan触摸板滚动方向反转、启动“双指点击打开右键菜单“、“双指滚动“
- Summary of spanner's paper
- libpng12.so.0: cannot open shared object file: No such file or directory 亲测有效
- Deeply understand the underlying implementation principle of countdownlatch in concurrent programming
- tese_ Time_ 2h
- A little assistant for teenagers' physiological health knowledge based on wechat applet (free source code + project introduction + operation introduction + operation screenshot + Thesis)
- OneFlow源码解析:算子签名的自动推断
- 【医学分割】u2net
- HCM 初学 ( 一 ) - 简介
- Flowable source code comment (XXXIX) task listener
猜你喜欢

Using nocalhost to develop microservice application on rainbow

JDBC common interview questions
Educational administration management system of SSM (free source code)
![[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

Cockroachdb: the resistant geo distributed SQL database paper reading notes

busybox生成的东西

Advanced cross platform application development (III): online resource upgrade / hot update with uni app
![[RootersCTF2019]babyWeb](/img/b4/aa8f8e107a9dacbace72d4717b1834.png)
[RootersCTF2019]babyWeb

Summary of common components of applet

HCM 初学 ( 三 ) - 快速输入PA70、PA71 浏览员工信息PA10
随机推荐
mysql 将毫秒数转为时间字符串
Ssgssrcsr differences
tese_Time_2h
Boot + jsp University Community Management System (with source Download Link)
Rust hello-word
What is the at instruction set often used in the development of IOT devices?
C语言初阶——实现扫雷游戏
Set集合详细讲解
JDBC常见面试题
HCM 初学 ( 三 ) - 快速输入PA70、PA71 浏览员工信息PA10
Mongodb學習篇:安裝後的入門第一課
ssm+mysql二手交易网站(论文+源码获取链接)
tese_ Time_ 2h
从MLPerf谈起:如何引领AI加速器的下一波浪潮
Data governance: data governance management (Part V)
C语言初阶——牛客网精选好题
win10、win11中Elan触摸板滚动方向反转、启动“双指点击打开右键菜单“、“双指滚动“
El cascade echo failed; El cascader does not echo
CentOS 7 installed php7.0 using Yum or up2date
数据治理:数据治理框架(第一篇)