简体   繁体   English

PyCharm:如何使用调试模式

[英]PyCharm: how to use debug mode

I've never used an IDE so probably my problem is really basic. 我从未使用过IDE,所以可能我的问题确实很基本。 When I start the debug mode, it shows me only this empty screen pic 当我启动调试模式时,它仅显示此空白屏幕图片

How can I let it start correctly? 如何让它正确启动?

You need to add breakpoints by clicking on the sidebar near the line count. 您需要通过单击行数附近的侧栏来添加断点。

Then, when you will start a debugging session the execution of the code will stop at your breakpoint, you can then uses the multiple controls to navigate in your code. 然后,当您开始调试会话时,代码的执行将在您的断点处停止,然后您可以使用多个控件在代码中导航。

You will also see the variables related to your code. 您还将看到与代码相关的变量。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM