PyCharm python on the fly debugging


I would like to know if it's possible to do on the fly debugging ?

for example changing a word syntax while standing on a break point.

Thank you.
Comment actions Permalink
Hi Kobik,

It is impossible because Python interpreter does not support methods reloading during the execution of the program.
Comment actions Permalink
I still have one more question, since the interpreter works on each line, what about the lines he didn't get to them.

For example:

x = 5
y = 10 -> brake point
t = 20

is it possible to change t=20 ?
Comment actions Permalink
No. The module in Python is loaded wholly but not line by line.
Change is possible only in a module (another file) you did not imported yet (the line “import …” is after the breakpoint).

Please sign in to leave a comment.