I am typing more print statements than code. It's killing me.
If a flask development server is invoked via below, I can use PyCharm debugger
from ersapp import app
if __name__ == '__main__':
app.run(debug=True)
I am following the example in Miguel Grinberg's book and an application manager (flask-script) is used. I invoke the server in my application directory like below
(env)$ python manage.py runserver
and in appdirectory/__init__.py
def create_app(config_name):
webapp = Flask(__name__)
...
return webapp
The debugger in Pycharm would make things easier since that's where I work.
The default value is 'development'. Select this checkbox to enable the built-in Flask debug mode. With this mode, the development server will be automatically reloaded on any code change enabling continuous debugging.
PyCharm supports Flask development including: Dedicated project type. Support for the built-in Flask debugger. Flask command-line interface (CLI).
Try configuring this python running configuration in "Edit Configurations". After that, run in debug mode.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With