Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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
like image 860
Michael_Scharf Avatar asked Jun 21 '13 00:06

Michael_Scharf


1 Answers

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....

like image 66
Michael_Scharf Avatar answered Sep 22 '22 08:09

Michael_Scharf