accelerated stepping from a old thread and Perl changes.
[email protected] (Rocky Bernstein) Sat, 3 Dec 2011 14:12:20 -0500
| Newsgroups | perl.debugger |
|---|---|
| Message-ID | <CANCp2gYje3R_gPXX-RRo3z5g0B5roLLxSg0-V04zUQmNWJi8PA@mail.gmail.com> |
--bcaec520f12561def904b334dd58 Content-Type: text/plain; charset=ISO-8859-1 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. --bcaec520f12561def904b334dd58--