This project has moved. For the latest updates, please go here.


Breakpoints not hit in Flask


As mentioned in this StackOverflow post that I made, you cannot debug URL routes in Flask using PythonTools.

The debugger hits breakpoints before the call to, but in a decorated routing function, no breakpoints will be hit, meaning flask effectively cannot be debugged.

While I posted this when PT was still in version 2.0, this is still true for a Flask project made with PT 2.1

Edit: After reading some other responses on this issues page, breakpoints can get hit if you manually attach the VS debugger to the second instance of python.exe after you run the project. However this is fairly inconvenient as you have to re-attach each time you restart the project
Closed Mar 30, 2015 at 8:52 PM by pminaev


pminaev wrote Sep 12, 2014 at 7:32 PM

To fix this, we need to implement this feature: