Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added a call to get_arguments in _input_locals_cmd

  • Loading branch information...
commit 1bada2403a94b352d6145dafa16790cbe40810fe 1 parent 2f9902c
@devhawk authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 ipydbg.py
View
7 ipydbg.py
@@ -330,6 +330,7 @@ def _input_locals_cmd(self, keyinfo):
print "\nLocals"
show_hidden = (keyinfo.Modifiers & ConsoleModifiers.Alt) == ConsoleModifiers.Alt
locals = get_locals(self.active_thread.ActiveFrame, show_hidden)
+ args = get_arguments(self.active_thread.ActiveFrame, show_hidden)
count = 0
for name,value in ((name, extract_value(value)) for name, value in locals):
display, type_name = display_value(value)
@@ -337,6 +338,12 @@ def _input_locals_cmd(self, keyinfo):
print display,
with CC.Green: print type_name
count+=1
+ for name,value in ((name, extract_value(value)) for name, value in args):
+ display, type_name = display_value(value)
+ with CC.Magenta: print " ", name,
+ print display,
+ with CC.Green: print type_name
+ count+=1
else:
if count == 0:
with CC.Magenta: print " No Locals Found"
Please sign in to comment.
Something went wrong with that request. Please try again.