Skip to content
Advertisement

Drop frame while debugging?

I’d like to know if drop frame is available in PyCharm / Intellij with Python plugin.

Here’s what the button looks like (it doesn’t show up on the debug toolbar so I assume it’s just not available for PyCharm) –> How to step one step back in IntelliJ?

What I’m trying to do is to re-play a function when I see a problem, to inspect it more. (“come back in time”)

(I’ve used this before in Eclipse with Java, it would replay the current scope if you edited it and saved changes. of course the global scope remains changed after running a function many times, but for most cases it’s very useful)

Thanks for telling!

Advertisement

Answer

Since you want to ‘re-ply a function’, ‘Evaluate Expression’ works great for that purpose. I use a lot when I debug. It basically allows to run any code at runtime with the variables and functions in that context.

It is the icon on the most right on the debug window.

Put a break point on the line before the line where goes wrong, debug the program, when it tops on the break point, click on ‘Evaluate Expression’ icon, copy the function with issues, paste it and run it.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement