Use case:
1. `pdb.set_trace` in the code
2. trigger web request
3. start debugging / messing around, maybe even use `edit` (via pdbpp) to
edit files
4. 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.
--
Ticket URL: <https://code.djangoproject.com/ticket/30420>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* stage: Unreviewed => Accepted
Comment:
This would indeed be nice to have and looks rather simple to implement. Do
you want to submit a PR?
--
Ticket URL: <https://code.djangoproject.com/ticket/30420#comment:1>
Comment (by Daniel Hahler):
I'd do a PR only after some feedback on
https://github.com/pallets/werkzeug/pull/1525.
--
Ticket URL: <https://code.djangoproject.com/ticket/30420#comment:2>
* cc: Florian Apolloner (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/30420#comment:3>
* type: Cleanup/optimization => Bug
Comment:
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.
--
Ticket URL: <https://code.djangoproject.com/ticket/30420#comment:4>
Comment (by Florian Apolloner):
If there were an update the current comments would reflect that (usually
at least). So the current status is: Patches welcome :)
--
Ticket URL: <https://code.djangoproject.com/ticket/30420#comment:5>
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/11777 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/30420#comment:6>
* status: new => assigned
* needs_better_patch: 0 => 1
* version: 2.2 => master
* owner: nobody => Kim Namjun
--
Ticket URL: <https://code.djangoproject.com/ticket/30420#comment:7>
* owner: Kim Namjun => Rohith P R
--
Ticket URL: <https://code.djangoproject.com/ticket/30420#comment:8>
* needs_better_patch: 1 => 0
Comment:
https://github.com/django/django/pull/14597
--
Ticket URL: <https://code.djangoproject.com/ticket/30420#comment:9>
* needs_better_patch: 0 => 1
Comment:
See [https://github.com/django/django/pull/14597#issuecomment-876791741
Tom's comment].
--
Ticket URL: <https://code.djangoproject.com/ticket/30420#comment:10>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/30420#comment:11>
* has_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/30420#comment:12>