Skip to content

Commit 1222d90

Browse files
authored
expose global vars in debugger
resolves bpython#713
1 parent 789c6dc commit 1222d90

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bpdb/debugger.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ def postloop(self):
4444
# cmd.Cmd commands
4545

4646
def do_Bpython(self, arg):
47-
bpython.embed(self.curframe.f_locals, ['-i'])
47+
locals_ = dict(**self.curframe.f_globals, **self.curframe.f_locals)
48+
bpython.embed(locals_, ['-i'])
49+
4850

4951
def help_Bpython(self):
5052
print("B(python)")

0 commit comments

Comments
 (0)