File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,26 @@ In general, you use
106106tox -p auto -o -e < tox_env> -- < pytest_args>
107107```
108108
109+ ## Debugging
110+
111+ Normal Python breakpoints using ` breakpoint() ` will drop you into ` pdb ` by default.
112+ To inspect C applications like uWSGI or extension module code at runtime, ` lldb ` is useful.
113+ For example, to debug a Django application that interfaces with uWSGI, build uWSGI with debug symbols using
114+
115+ ``` bash
116+ CFLAGS=" -g -O0" python uwsgiconfig.py --build
117+ ```
118+
119+ and then run the Django app with ` lldb ` using a command analogous to the following (with paths updated)
120+
121+ ``` bash
122+ lldb -- ../../uwsgi/uwsgi --pythonpath " $PWD /.venv/lib/python3.14/site-packages" \
123+ --http :8000 \
124+ --module mysite.wsgi:application \
125+ --home " $PWD /.venv" \
126+ --need-app \
127+ ```
128+
109129## Adding a New Integration
110130
111131### SDK Contract
You can’t perform that action at this time.
0 commit comments