Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DebuggerStepThrough in python?

Is there a way to mark a certain method in python so that the debugger won't step into it while debugging ? (I'm using PyCharm, so if there's something specific that the IDE can help me with, that would be great too)

For those familiar with C# - I'm looking for a DebuggerStepThrough attribute in python...

like image 440
gillyb Avatar asked Jan 19 '26 22:01

gillyb


1 Answers

For PyCharm: Go to Preferences > Build > Execution > Deployment > Stepping > Python

Configure "Do net step into scripts" with glob patterns of the scripts you do not want to step into.

like image 81
Joolean Avatar answered Jan 21 '26 11:01

Joolean



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!