Skip to content

Commit 9f66dcb

Browse files
authored
Merge pull request #728 from toejough/patch-2
expose global vars in debugger
2 parents d5abcdc + 1222d90 commit 9f66dcb

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)