How to debug Flask with PyDev?

If I want to run the Flask application with PyDev, and I set breakpoints, the debugger will not stop.

Another symptom is that killing the form of the eclipse process will not stop the process. When I restart the application, the port is already in use because another instance is running.

It happens when

debug=True 
+6
source share
1 answer

The problem is that debug=True sets use_reloader=True unless you explicitly set it to false. The solution is to set use_reloader to false:

 use_reloader=False 

But I am wondering if there is a way to save the reboot ....

+3
source

Source: https://habr.com/ru/post/947795/


All Articles