How to enable debugging in Flask Python?

How to enable debugging in Flask Python ?

To enable debugging in Flask Python in Windows OS, follow the following steps -

  1. Type set FLASK_DEBUG=1 on the command-line terminal in the windows OS.
  2. Restart your application.

To enable debugging in Flask Python in Linux OS, follow the following steps -

  1. Type export FLASK_DEBUG=1 on the LINUX terminal.
  2. Restart your application.