Opened 6 years ago

Last modified 6 years ago

#15249 new New feature

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: yes Needs documentation: no
Needs tests: no Patch needs improvement: yes
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 6 years ago.
inline debug patch
inline-debug.diff (3.0 KB) - added by Sameer Rahmani 6 years ago.

Download all attachments as: .zip

Change History (10)

Changed 6 years ago by Sameer Rahmani

Attachment: inline_debug.diff added

inline debug patch

comment:1 Changed 6 years ago by Sameer Rahmani

Cc: lxsameer@… added

comment:2 Changed 6 years ago by Sameer Rahmani

Summary: Inline debugging[PATCH] Inline debugging

Changed 6 years ago by Sameer Rahmani

Attachment: inline-debug.diff added

comment:3 Changed 6 years ago by Russell Keith-Magee

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 Changed 6 years ago by Russell Keith-Magee

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 Changed 6 years ago by Alex Kamedov

Cc: alex@… added

comment:6 Changed 6 years ago by Łukasz Rekucki

Severity: Normal
Type: New feature

comment:7 Changed 5 years ago by Aymeric Augustin

UI/UX: unset

Change UI/UX from NULL to False.

comment:8 Changed 5 years ago by Aymeric Augustin

Easy pickings: unset

Change Easy pickings from NULL to False.

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