How pycharm the flask project opened debug mode

If the project does not open flask Debug mode during development, we want to see the error message in the project can only go to the console view, it would be more trouble, but if you do not turn on debug mode, every time we need to adjust the code server restart, one thing is very troublesome, so we had better be open to debug mode

But I use the code in pycharm in turn debug mode is always open. Use code to open the tutorial debug mode can refer to the Bangladesh captain Flask fifth chapter ---- set the debug mode of this blog, I am here mainly to talk about in pycharm how to do open in debug mode .

This is the beginning of the project, use the code to open the debug mode is unsuccessful

debug unsuccessful

Approach:

turn on

  1. Click on the top right of the project name ---> Edit Configurations ...
  2. Check FLASK_DEBUG option configurations in, then click ok to complete the setup

Start new projects, the completion of open debug mode

Open

Published 87 original articles · 87 won praise · views 70000 +

Guess you like

Origin blog.csdn.net/william_munch/article/details/104056119