- 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.
- JavaScript前端開發(fā)模塊化教程
- 大學(xué)計(jì)算機(jī)基礎(chǔ)實(shí)驗(yàn)教程
- React Native Cookbook
- Java性能權(quán)威指南(第2版)
- JavaScript 程序設(shè)計(jì)案例教程
- Java程序設(shè)計(jì):原理與范例
- Mastering React
- 深度實(shí)踐KVM:核心技術(shù)、管理運(yùn)維、性能優(yōu)化與項(xiàng)目實(shí)施
- Python 快速入門(第3版)
- Mastering PowerCLI
- 原型設(shè)計(jì):打造成功產(chǎn)品的實(shí)用方法及實(shí)踐
- 算法學(xué)習(xí)與應(yīng)用從入門到精通
- 匯編語(yǔ)言程序設(shè)計(jì)教程
- Responsive Web Design with HTML5 and CSS3(Second Edition)
- Struts2技術(shù)內(nèi)幕:深入解析Struts架構(gòu)設(shè)計(jì)與實(shí)現(xiàn)原理