- Python Microservices Development
- Tarek Ziadé
- 215字
- 2021-07-02 18:54:23
The debug mode
The Flask application run method has a debug option, which, when used, runs it in the debug mode:
app.run(debug=True)
The debug mode is a special mode, where the built-in debugger takes precedence on any error, and allows you to interact with the app from a browser:

The console in the web-debugger will let you interact with the current app, and inspect variables or execute any Python code that is in the current execution frame.
Flask will even let you configure a third-party debugger. JetBrains's PyCharm (https://www.jetbrains.com/pycharm), for example, is a commercial IDE for Python, which offers a powerful visual debugger that can be set up to run with Flask.
The plain old pdb module is also a good option when you are tracking down a problem by inserting a pdb.set_trace() call in your code.
- 軟件項(xiàng)目估算
- Mastering Selenium WebDriver
- Java深入解析:透析Java本質(zhì)的36個(gè)話(huà)題
- Java EE 7 Development with NetBeans 8
- Expert Android Programming
- Oracle從入門(mén)到精通(第5版)
- Unreal Engine 4 Shaders and Effects Cookbook
- H5頁(yè)面設(shè)計(jì):Mugeda版(微課版)
- Learning OpenStack Networking(Neutron)
- Kotlin開(kāi)發(fā)教程(全2冊(cè))
- MySQL程序員面試筆試寶典
- QGIS 2 Cookbook
- 算法設(shè)計(jì)與分析:基于C++編程語(yǔ)言的描述
- scikit-learn Cookbook(Second Edition)
- Modernizing Legacy Applications in PHP