I often doing such steps and want to optimize debug speed:
Does anybody have an idea of what is root cause of forcing reloading after suspend or it is PyDev Bug/Limitation?
The way the debug works is not by executing the source line-by-line. The debug "compiles" your source to bytecode (the .pyc files) and execute those, not your source.
The debug only keeps track of what piece of the .pyc files correspond to what line of your .py ones and display that information for your convenience, but the .py file itself is not what the debugger is using to run the program.
Therefore, if you change the source / .py file and want the debugger to acknowledge those changes, you need to "recompile" the .pyc files first.
HTH!
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