Search code examples
eclipsedebuggingflaskpydev

How to debug Flask with PyDev?


If I want to run your Flask app with PyDev, and I set breakpoints the debugger does not stop.

Another symptom is that killing the process form eclipse won't stop the process. When I rerun the app the port is already in use, because another instance is running.

This happens when

debug=True

Solution

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

    use_reloader=False
    

    But I wonder if there is a way to keep the reload going....