Opened 14 years ago
Closed 4 years ago
#15249 closed New feature (wontfix)
Provide access to a debugger within the development server
Reported by: | Sameer Rahmani | Owned by: | Sameer Rahmani |
---|---|---|---|
Component: | Core (Other) | Version: | 1.2 |
Severity: | Normal | Keywords: | inline debugger |
Cc: | lxsameer@…, alex@… | Triage Stage: | Accepted |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Sometimes a django project did not raise any exception but things are not going as well as we want. so it will be a good idea to
to run an interactive shell or pdb shell where we want in code or when an exception raised. the patch that i provide add an settings variable called "INLINE_DEBUGGER", that gets to value "interactive" and "pdb" and its default value is None.
if user set "INLINE_DEBUGGER" to "interactive" then when an exception raised a python interactive shell or ipython shell will executed with the exception locals. so user can easily test some condition in his/her code.
if user set "INLINE_DEBUGGER" to "pdb", when an exception raised django will execute a pdb shell with the exception locals.
forgive me because of my poor English
Attachments (2)
Change History (11)
by , 14 years ago
Attachment: | inline_debug.diff added |
---|
comment:1 by , 14 years ago
Cc: | added |
---|
comment:2 by , 14 years ago
Summary: | Inline debugging → [PATCH] Inline debugging |
---|
by , 14 years ago
Attachment: | inline-debug.diff added |
---|
comment:3 by , 14 years ago
Patch needs improvement: | set |
---|---|
Triage Stage: | Unreviewed → Accepted |
As noted on django-dev -- notionally accepted, but the provided patch won't be the way to do it. This isn't something that can be inserted into the base HTTP handler, because that code will end up on production servers.
comment:4 by , 14 years ago
Summary: | [PATCH] Inline debugging → Provide access to a debugger within the development server |
---|
... and please don't include [patch] in the subject. We know it has a patch -- that's why we have a "has patch" flag on the ticket.
comment:5 by , 14 years ago
Cc: | added |
---|
comment:6 by , 14 years ago
Severity: | → Normal |
---|---|
Type: | → New feature |
comment:9 by , 4 years ago
Has patch: | unset |
---|---|
Patch needs improvement: | unset |
Resolution: | → wontfix |
Status: | new → closed |
I don't think there is a way to move it forward. We can reconsider this decision only if someone provides PoC.
inline debug patch