The way debugging works is not to execute source code line by line. Debugging “compiles” your source into bytecode (.pyc files) and executes them, not your source .
Debugging only keeps track of which part of the .pyc files matches that line of your .py files and displays this information for your convenience, but the .py file itself is not what the debugger uses to run the program.
Therefore, if you modify the source / .py file and you want the debugger to confirm these changes, you need to recompile the .pyc files first.
NTN!
source
share