简体   繁体   English

如何使用 Python 在 Pycharm 调试模式下跳过行?

[英]How to skip lines in Pycharm debug mode with Python?

Let's say I put a breakpoint in the first line.假设我在第一行放置了一个断点。
I see no option to simply skip the 2nd line and jump straight to the print statement.我看不到简单地跳过第二行并直接跳到打印语句的选项。
Is there any hidden option?有没有隐藏选项? If not, what is the most non-intrusive way?如果没有,什么是最非侵入性的方式?
Commenting out the lines I don't wanna run is not elegant.注释掉我不想运行的行并不优雅。

a = 3
a = 4
print(a)

You can do right click on the third statement and Jump to Cursor .您可以right click第三条语句并Jump to Cursor This is a manual action though... I don't think there is a mode to only run breakpointed lines...虽然这是一个手动操作......我认为没有一种模式可以只运行断点行......

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

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