Opened 13 years ago

Closed 3 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)

inline_debug.diff (2.9 KB ) - added by Sameer Rahmani 13 years ago.
inline debug patch
inline-debug.diff (3.0 KB ) - added by Sameer Rahmani 13 years ago.

Download all attachments as: .zip

Change History (11)

by Sameer Rahmani, 13 years ago

Attachment: inline_debug.diff added

inline debug patch

comment:1 by Sameer Rahmani, 13 years ago

Cc: lxsameer@… added

comment:2 by Sameer Rahmani, 13 years ago

Summary: Inline debugging[PATCH] Inline debugging

by Sameer Rahmani, 13 years ago

Attachment: inline-debug.diff added

comment:3 by Russell Keith-Magee, 13 years ago

Patch needs improvement: set
Triage Stage: UnreviewedAccepted

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 Russell Keith-Magee, 13 years ago

Summary: [PATCH] Inline debuggingProvide 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 Alex Kamedov, 13 years ago

Cc: alex@… added

comment:6 by Łukasz Rekucki, 13 years ago

Severity: Normal
Type: New feature

comment:7 by Aymeric Augustin, 12 years ago

UI/UX: unset

Change UI/UX from NULL to False.

comment:8 by Aymeric Augustin, 12 years ago

Easy pickings: unset

Change Easy pickings from NULL to False.

comment:9 by Mariusz Felisiak, 3 years ago

Has patch: unset
Patch needs improvement: unset
Resolution: wontfix
Status: newclosed

I don't think there is a way to move it forward. We can reconsider this decision only if someone provides PoC.

Note: See TracTickets for help on using tickets.
Back to Top