1
Vote

Breakpoints not hit in Flask

description

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 app.run(), 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

comments

pminaev wrote Sep 12 at 7:32 PM

To fix this, we need to implement this feature:
https://pytools.codeplex.com/workitem/2668