Permalink
Browse files

Change H to go to bottom of stack.

  • Loading branch information...
1 parent 61137e6 commit 5869490e38288104c691fb6b622f0b88c771557f @inducer committed Jul 24, 2012
Showing with 10 additions and 1 deletion.
  1. +4 −0 README.rst
  2. +6 −1 pudb/debugger.py
View
@@ -46,6 +46,8 @@ Install PuDB using the command::
easy_install pudb
+
+
Getting Started
---------------
@@ -97,6 +99,8 @@ version control tool.::
You may also `browse the code <http://git.tiker.net/pudb.git>`_ online.
+The repository is also mirrored at `github <https://github.com/inducer/pudb>`_.
+
FAQ
---
View
@@ -33,6 +33,7 @@
t - run to cursor
e - show traceback [post-mortem or in exception state]
+ H - move to current line (bottom of stack)
u - move up one stack frame
d - move down one stack frame
@@ -561,12 +562,16 @@ def examine_frame(w, size, key):
self.stack_list.listen("enter", examine_frame)
+ def move_stack_top(w, size, key):
+ self.debugger.set_frame_index(len(self.debugger.stack)-1)
+
def move_stack_up(w, size, key):
self.debugger.move_up_frame()
def move_stack_down(w, size, key):
self.debugger.move_down_frame()
+ self.stack_list.listen("H", move_stack_top)
self.stack_list.listen("u", move_stack_up)
self.stack_list.listen("d", move_stack_down)
@@ -986,6 +991,7 @@ def keypress(self, size, key):
self.source_sigwrap.listen("b", toggle_breakpoint)
self.source_sigwrap.listen("m", pick_module)
+ self.source_sigwrap.listen("H", move_stack_top)
self.source_sigwrap.listen("u", move_stack_up)
self.source_sigwrap.listen("d", move_stack_down)
@@ -1123,7 +1129,6 @@ def help(w, size, key):
self.top.listen("q", quit)
self.top.listen("ctrl p", do_edit_config)
- self.top.listen("H", help)
self.top.listen("f1", help)
self.top.listen("?", help)

0 comments on commit 5869490

Please sign in to comment.