0

I have PyDev 3.8+ on Eclipse and I can't get auto-reload to work. I have checked all options in the PyDev > Debug > When file is changed, automatically reload module, but still I can't make it work.

enter image description here

i want to change 'che' to some other number while debugging

1 Answers1

0

It's not possible to reload the currently running function (that's a Python limitation).

So, you must reload before entering the function.

Also, in general, you should not need to call pydevd_reload.xreload(mod) yourself... whenever you change the file and save it while the debugger is running, PyDev should automatically reload it for you.

Also, keep in mind that reload has a number of limitations. See: https://github.com/fabioz/PyDev.Debugger/blob/main/_pydevd_bundle/pydevd_reload.py#L66 for more details.

Fabio Zadrozny
  • 24,814
  • 4
  • 66
  • 78