To be a bit more precise, it's not supported right now, and I don't know at the moment how hard it is to make it work.
- Almar On Mon, Dec 21, 2020, at 15:16, Giovanni Triboli wrote: > Hi Almar. > I understand that this is an advanced feature. > I'm able to set breakpoints when I develop my flask projects with the Wing > Personal Edition IDE. > But that free edition has other limitations so I'd prefer using Pyzo. > Unfortunately you're saying that this isn't feasible in Pyzo. > Thank you for your message. > Giovanni > Il giorno lunedì 21 dicembre 2020 alle 11:29:39 UTC+1 [email protected] ha > scritto: >> __ >> 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/4b2e44f9-31b5-4171-b945-d67d534acd03n%40googlegroups.com > > <https://groups.google.com/d/msgid/pyzo/4b2e44f9-31b5-4171-b945-d67d534acd03n%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/4985ee4b-98dd-4268-bc86-9d2ebada4bff%40www.fastmail.com.
