This repository has been archived by the owner on May 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expose PYTHONBREAKPOINT config variable with default of ipdb #45
Labels
enhancement
Relates to new features or improvements to existing features
good first issue
A good task for a newcomer to start with
Comments
kdmccormick
added
the
enhancement
Relates to new features or improvements to existing features
label
Feb 5, 2022
This is definitely doable in the devevelopment image, where ipdb is installed: https://github.com/overhangio/tutor/blob/68b46aa72046402d399cae74a9f32dee6088296a/tutor/templates/build/openedx/Dockerfile#L226 |
kdmccormick
moved this from Ungroomed (Kyle)
to Groomed
in Tutor DevEnv Adoption (OLD BOARD)
Mar 22, 2022
Gonna tackle this issue @kdmccormick |
This was referenced Jun 8, 2022
regisb
pushed a commit
to overhangio/tutor
that referenced
this issue
Jun 22, 2022
PYTHONBREAKPOINT has been exposed as an environment variable in the openedx Dockerfile available to be changed in config.yml. The docs have also been changed to recommend using breakpoint and explaining how PYTHONBREAKPOINT can be modified to use a custom debugger. Close openedx-unsupported/wg-developer-experience#45
Repository owner
moved this from Groomed
to Closed
in Tutor DevEnv Adoption (OLD BOARD)
Jun 22, 2022
Repository owner
moved this from In Progress
to Backlog
in Tutor DevEnv Adoption
Jun 22, 2022
jmakowski1123
moved this from Done - To ship in future Named Release
to To ship in Olive
in Open edX Roadmap
Oct 6, 2022
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
enhancement
Relates to new features or improvements to existing features
good first issue
A good task for a newcomer to start with
Context
Since Python 3.7, there exists a
breakpoint()
builtin function, which is a small but significant quality-of-life improvement over typing outimport pdb;pdb.set_trace()
, orimport ipdb;ipdb.set_trace()
, or something else. The function drops intopdb.set_trace
unlessPYTHONBREAKPOINT
has been any other callable or0
(disable breakpoints).The Open edX development docs currently recommend using
import ipdb;ipdb.set_trace()
.Acceptance
PYTHONBREAKPOINT
as a Tutor configuration variable, with a default of"ipdb.set_trace"
.ARG PYTHONBREAKPOINT={{ PYTHONBREAKPOINT }}
in the openedx dockerfilebreakpoint()
.PYTHONBREAKPOINT
can be modified in order to use a custom debugger.The text was updated successfully, but these errors were encountered: