Note: To explain this quickly I'm going to talk about this from the perspective of working in Spyder.
If the a function is called in my code, I can put a break point next to where it's called and then when my code gets to that point I can click the "Step into function.." button to see what happens inside this function.
Suppose I'm at some arbitrary breakpoint and want to see what happens inside a function that's not in my code. Is there any way to call this function through the pdb console and "step into" said function call?
You can use ipdb
. put ipdb.set_trace()
wherever you want to debug. Then press s
to step into the function.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With