- 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.
- 算法零基礎(chǔ)一本通(Python版)
- MySQL 8從入門到精通(視頻教學(xué)版)
- 程序員面試算法寶典
- C和C++安全編碼(原書第2版)
- 數(shù)據(jù)結(jié)構(gòu)(Java語(yǔ)言描述)
- Servlet/JSP深入詳解
- 區(qū)塊鏈:以太坊DApp開(kāi)發(fā)實(shí)戰(zhàn)
- Java虛擬機(jī)字節(jié)碼:從入門到實(shí)戰(zhàn)
- 假如C語(yǔ)言是我發(fā)明的:講給孩子聽(tīng)的大師編程課
- Learning Data Mining with R
- Visual Basic程序設(shè)計(jì)
- Learning Nessus for Penetration Testing
- Functional Python Programming
- 分布式數(shù)據(jù)庫(kù)HBase案例教程
- 新手學(xué)ASP.NET 3.5網(wǎng)絡(luò)開(kāi)發(fā)