You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Windows8/Python2.7 64bit/WingIDE, using the build-in example in Flask-SocketIO.
I found that when using WingIDE, the breakpoints I set does not work.
Reason: flask_socketio/init.py run() invoked run_with_reloader(), whick make another python.exe process.
So I comments the 'app.debug = True' line, and all breakpoints become OK.
Yes, debugging with the reloader enabled gets tricky because the application runs in a child process. An improvement that I could make is to support the use_reloader argument in run(), like Flask's app.run() does. That will let you run in debug mode without the reloader.
I found that without being able to pass use_reloader to socketio.run(), I couldn't run unit tests using selenium in the way suggested in the Flask book. WerkZeug tries to reload the executable "python -m unittest".
Maybe I'm missing something about how to do this? If not I would strongly support this enhancement being made.
Sorry about this! I have correctly added debug=False to the above and it now works.
Thanks a lot, sorry to report problems prematurely. I have removed a couple of previous comments where I still hadn't figured out where my mistake was.
Windows8/Python2.7 64bit/WingIDE, using the build-in example in Flask-SocketIO.
I found that when using WingIDE, the breakpoints I set does not work.
Reason: flask_socketio/init.py run() invoked run_with_reloader(), whick make another python.exe process.
So I comments the 'app.debug = True' line, and all breakpoints become OK.
The text was updated successfully, but these errors were encountered: