Permalink
Browse files

added a call to get_arguments in _input_locals_cmd

  • Loading branch information...
1 parent 2f9902c commit 1bada2403a94b352d6145dafa16790cbe40810fe @devhawk committed Mar 28, 2009
Showing with 7 additions and 0 deletions.
  1. +7 −0 ipydbg.py
View
@@ -330,13 +330,20 @@ 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)
with CC.Magenta: print " ", name,
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"

0 comments on commit 1bada24

Please sign in to comment.