pycharm专业版右上角打开edit configurations勾选FLASK_DEBUG选项即可解决
这里说明社区版解决方法
run-->edit configurations
点击+号,选python
按下图输入
其中,--app exp1 run --debug中的exp1是你想调试的py文件名称
点击确认后直接点击运行flask run (上图过程设置的name)即可调试exp1
pycharm专业版右上角打开edit configurations勾选FLASK_DEBUG选项即可解决
这里说明社区版解决方法
run-->edit configurations
点击+号,选python
按下图输入
其中,--app exp1 run --debug中的exp1是你想调试的py文件名称
点击确认后直接点击运行flask run (上图过程设置的name)即可调试exp1