AoiKuiyuyou / AoikLiveReload

Detect module file changes and reload the program.
MIT License
23 stars 4 forks source link

Pycharm/Intellij debug #2

Open Toilal opened 7 years ago

Toilal commented 7 years ago

When running the app in intellij debug mode, it fails to hot reload

For sanic, here's the console output.

2017-10-29 22:19:41 - (sanic)[INFO]: Goin' Fast @ http://0.0.0.0:8000
2017-10-29 22:19:41 - (sanic)[INFO]: Starting worker [14423]
Traceback (most recent call last):
  File "/home/toilal/.IntelliJIdea2017.3/config/plugins/python/helpers/pydev/pydevd.py", line 13, in <module>
    import traceback
  File "/home/toilal/.pyenv/versions/3.6.3/lib/python3.6/traceback.py", line 3, in <module>
    import collections
  File "/home/toilal/.virtualenvs/backend-OYqeEOMk/lib/python3.6/collections/__init__.py", line 31, in <module>
    from itertools import repeat as _repeat, chain as _chain, starmap as _starmap
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 152, in __exit__
  File "<frozen importlib._bootstrap>", line 105, in release
KeyboardInterrupt

Process finished with exit code 1
Toilal commented 7 years ago

It seems to work with RELOAD_MODE_V_SPAWN_WAIT option.