Debian Codegraph @

docs/panels.rst

raw
1 Built-In Panels
2 ===============
3
4 Versions
5 --------
6 flask_debugtoolbar.panels.versions.VersionDebugPanel
7
8 Shows the installed Flask version. The expanded view displays all installed packages and their versions as detected by ``setuptools``.
9
10
11 Time
12 ----
13
14 flask_debugtoolbar.panels.timer.TimerDebugPanel
15
16 Shows the time taken to process the current request. The expanded view includes the breakdown of CPU time, by user and system, wall clock time, and context switches.
17
18 .. image:: _static/screenshot-time-panel.png
19
20
21 HTTP Headers
22 ------------
23
24 flask_debugtoolbar.panels.headers.HeaderDebugPanel
25
26 Displays the HTTP headers for the current request.
27
28 .. image:: _static/screenshot-headers-panel.png
29
30
31 Request Vars
32 ------------
33
34 flask_debugtoolbar.panels.request_vars.RequestVarsDebugPanel
35
36 Displays details of the Flask request-related variables, including the view function parameters, cookies, session variables, and GET and POST variables.
37
38 .. image:: _static/screenshot-request-vars-panel.png
39
40
41 Config
42 ------
43
44 flask_debugtoolbar.panels.config_vars.ConfigVarsDebugPanel
45
46 Shows the contents of the Flask application's config dict ``app.config``.
47
48 .. image:: _static/screenshot-config-panel.png
49
50
51 Templates
52 ---------
53
54 flask_debugtoolbar.panels.template.TemplateDebugPanel
55
56 Shows information about the templates rendered for this request, and the value of the template parameters provided.
57
58 .. image:: _static/screenshot-template-panel.png
59
60
61 SQLAlchemy
62 ----------
63
64 flask_debugtoolbar.panels.sqlalchemy.SQLAlchemyDebugPanel
65
66 Shows SQL queries run during the current request.
67
68 .. note:: This panel requires using the `Flask-SQLAlchemy`_ extension in order
69 to record the queries. See the Flask-SQLAlchemy
70 :ref:`flasksqlalchemy:quickstart` section to configure it.
71
72 For additional details on query recording see the
73 :py:func:`~flask_sqlalchemy.get_debug_queries` documentation.
74
75 .. note:: SQL syntax highlighting requires `Pygments`_ to be installed.
76
77 .. image:: _static/screenshot-sqlalchemy-panel.png
78
79 .. _Flask-SQLAlchemy: https://flask-sqlalchemy.palletsprojects.com/
80
81 .. _Pygments: https://pygments.org/
82
83
84 Logging
85 -------
86
87 flask_debugtoolbar.panels.logger.LoggingPanel
88
89 Displays log messages recorded during the current request.
90
91 .. image:: _static/screenshot-logger-panel.png
92
93
94 Route List
95 ----------
96
97 flask_debugtoolbar.panels.route_list.RouteListDebugPanel
98
99
100 Displays the Flask URL routing rules.
101
102
103 Profiler
104 --------
105
106 flask_debugtoolbar.panels.profiler.ProfilerDebugPanel
107
108 Reports profiling data for the current request. Due to the performance overhead, profiling is disabled by default. Click the checkmark to toggle profiling on or off. After enabling the profiler, refresh the page to re-run it with profiling.
109
110 .. image:: _static/screenshot-profiler-panel.png