Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to skip lines in Pycharm debug mode with Python?

Tags:

python

pycharm

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)
like image 747
Chris Avatar asked Jun 18 '26 12:06

Chris


1 Answers

You can do right click on the third statement and Jump to Cursor. This is a manual action though... I don't think there is a mode to only run breakpointed lines...

like image 84
Gigioz Avatar answered Jun 20 '26 02:06

Gigioz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!