Provide access to a debugger within the development server
|Reported by:||Sameer Rahmani||Owned by:||Sameer Rahmani|
|Cc:||lxsameer@…, alex@…||Triage Stage:||Accepted|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||yes|
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
Change History (10)
comment:1 Changed 6 years ago by
|Patch needs improvement:||unset|
comment:4 Changed 6 years ago by
|Summary:||[PATCH] Inline debugging → Provide access to a debugger within the development server|