3

Has anyone had success setting up Flask project in WingIDE so that you can do breakpoint and use the debug probe on incoming requests?

Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343
Manto
  • 1,642
  • 1
  • 13
  • 28

2 Answers2

4

If you turn the Flask debugging off, it should allow for WingIDE's debugging to take over. This works for Eclipse; unfortunately, I have no experience with WingIDE. It's worth a shot at least.

if __name__ == '__main__':
    app.debug = False
    app.run()
JoshFinnie
  • 4,841
  • 7
  • 28
  • 28
1

https://wingware.com/doc/howtos/flask

if __name__ == "__main__":
    import os
    if 'WINGDB_ACTIVE' in os.environ:
        app.debug = False
    app.run()