Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

accelerated stepping from a old thread and Perl changes.

0 views
Skip to first unread message

Rocky Bernstein

unread,
Dec 3, 2011, 2:12:20 PM12/3/11
to debu...@perl.org
I was looking at old debugger list postings on "accelerated stepping".

The general problem of how to make stepping feel right is a well trodden
topic. So let me describe how the trepanning debuggers such as
Devel::Trepan partially address this. The idea builds on something Kent
Sibilev added to ruby-debug, and as far as I know he was the first to do
this.

There is a setting called "set different" in ruby-debug (originally called
"set force") which can be "on" or "off". When "on" the setting causes
"next" and "step" commands to stop at a different line numbers for a given
frame. The stack frame is used because one wants to treat recursive calls
as "different". In the trepanning debuggers, I added "+" and "-" suffixes
to the "step" and "next" commands which over-ride the default setting.
0 new messages