Opened 6 years ago
Last modified 20 months ago
#30420 assigned Bug
Do not reload runserver during debugging / request processing
Description ¶
The server should not be restarted while debugging (pdb.set_trace()
).
Use case:
pdb.set_trace
in the code- trigger web request
- start debugging / messing around, maybe even use
edit
(via pdbpp) to edit files - save something being watched
This ends up in garbarge on the screen, and the server process/thread getting killed.
This could be achieved using a thread lock.
See https://github.com/pallets/werkzeug/pull/1525/files for an example.
According to the ticket's flags, the next step(s) to move this issue forward are:
- To provide a patch by sending a pull request. Claim the ticket when you start working so that someone else doesn't duplicate effort. Before sending a pull request, review your work against the patch review checklist. Check the "Has patch" flag on the ticket after sending a pull request and include a link to the pull request in the ticket comment when making that update. The usual format is:
[https://github.com/django/django/pull/#### PR]
.
Change History (12)
comment:1 by , 6 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 6 years ago
I'd do a PR only after some feedback on https://github.com/pallets/werkzeug/pull/1525.
comment:3 by , 6 years ago
Cc: | added |
---|
comment:4 by , 6 years ago
Type: | Cleanup/optimization → Bug |
---|
Any update on this bug?
The server process gets killed even on a cold start (i. e. without any file reloading) when a line with import ipdb; ipdb.set_trace()
is hit.
comment:5 by , 6 years ago
If there were an update the current comments would reflect that (usually at least). So the current status is: Patches welcome :)
comment:7 by , 5 years ago
Owner: | changed from | to
---|---|
Patch needs improvement: | set |
Status: | new → assigned |
Version: | 2.2 → master |
comment:8 by , 4 years ago
Owner: | changed from | to
---|
comment:9 by , 4 years ago
Patch needs improvement: | unset |
---|
comment:11 by , 20 months ago
Patch needs improvement: | unset |
---|
comment:12 by , 20 months ago
Has patch: | unset |
---|
This would indeed be nice to have and looks rather simple to implement. Do you want to submit a PR?