Hi Giovanni, It's indeed not possible to debug Flask applications with breakpoints. This is because Flask runs the webserver (and event loop) in a specific way. I've never dived in deep enough to know what the exact problem is, and whether it's something that possible to fix. But it's indeed a known limitation.
Personally, I've found flask applications are best run from the terminal. Then I use e.g. print statements to debug. Not ideal, but it usually gets the job done. - Almar On Thu, Dec 17, 2020, at 10:38, Giovanni Triboli wrote: > > Hi all. > I'm addicted to Pyzo. It's awesome. > The only thing I can't do is setting a breakpoint on a route function > and having Pyzo able to let me debug the function > when I open that route in the browser. > If you develop with the flask micro framework you know what I mean. > > I'm able to debug flask scripts only until I execute the app.run() function. > From then on, breakpoints are useless. > > I have tried both running the app with debug = True and False but it doesn't > matter. > > Maybe I lack some setting to let pyzo fully debug a flask script ? > > Your suggestions are highly appreciated. > TIA > Giovanni Triboli > > -- > You received this message because you are subscribed to the Google Groups > "Pyzo" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web, visit > https://groups.google.com/d/msgid/pyzo/8d8b00a3-4047-4591-adaa-515c1defc95an%40googlegroups.com > > <https://groups.google.com/d/msgid/pyzo/8d8b00a3-4047-4591-adaa-515c1defc95an%40googlegroups.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "Pyzo" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web, visit https://groups.google.com/d/msgid/pyzo/efc65965-11c0-47d4-8666-28dbbaddd1a6%40www.fastmail.com.
