Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upexpose globals in bpdb debugging #713
Closed
Comments
toejough
added a commit
to toejough/bpython
that referenced
this issue
Feb 7, 2018
resolves bpython#713
|
Good idea, thanks for the PR I will likely merge it tomorrow unless I think of something overnight! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I love bpython!
I haven't dived into the codebase too deeply, but would it be easy to expose the globals when performing post-mortem debugging? Right now I can only access the locals in the bpython debugger - to interact with the globals (for instance, debugging functions I might have defined in the same module as the function the pm debugging is in), I have to drop out of bpdb, losing all of it's benefits.
in the above example, I can do
>>> intern<tab>, and getinternal_debugto complete and get its help, and run it, but if I try to do>>> debug()<enter>I get an error about the name "debug" not being defined.I can do
>>> exit()to get back to(BPdb)and then do(BPdb) debug()<enter>anddebugis available and executes correctly.I've found code that looks like it's only exposing the locals (
bpython/bpdb/debugger.py
Line 47 in 2349722
I'll circle back and investigate more, but on the chance someone else knows better or gets to a PR first, I figured I'd post this issue.