[ENQ] Skip to in Debugger?

Stefan Matthias Aust sma at 3plus4.de
Thu Feb 10 22:50:06 UTC 2000


At 15:24 04.02.00 +1300, Stewart MacLean wrote:

>[...] Other Smalltalk debuggers have a facility where you can skip 
>to where every you have placed the cursor in the current method.
>
>[...] Is this currently possible or possibly underdevelopment?

AFAIK, it's not possible and nobody is working on adding this feature.

Fortunately, in Smalltalk such things are easy and a good point to start
are IMHO Debugger>>doStep and Debugger>>send.  To add a function
"stepToCursor" you probably need to remember the current cursor position
(selectionInterval), adjust it so it's the end of the very next expression
(see pcRange on how to get the expression intervals from a parse tree) and
repeat calling doStep until the current selection (contentSelection, aka pc
aka pcRange) reaches that function.

And if some kind soul wants to actually implement this, please also
consider a stepOut function which will step through all expressions of the
current method but stops again just before returning, also showing the
value which will be returned.

bye
--
Stefan Matthias Aust  //  Bevor wir fallen, fallen wir lieber auf.





More information about the Squeak-dev mailing list