Ok. To stop the debugger in a method at a line, I put "self halt." just before that line. But what if I'm tracing through some code and I want to step into a method being passed a message. ( Then step through code in that message.) How can I do this?
On Saturday 28 April 2001 01:26, Thaddeus L. Olczyk wrote:
Ok. To stop the debugger in a method at a line, I put "self halt." just before that line. But what if I'm tracing through some code and I want to step into a method being passed a message. ( Then step through code in that message.) How can I do this?
The Send button or menu choice steps into a message send, while the Step steps over it.
It would be nice to have a "step until return" choice, though, so you could step into a message send and then go till you got back out (or were just about to).
Thaddeus L. Olczyk wrote:
Ok. To stop the debugger in a method at a line, I put "self halt." just before that line. But what if I'm tracing through some code and I want to step into a method being passed a message. ( Then step through code in that message.) How can I do this?
This is what the command "send" does, it sends the message, placing the debugger inside the method that is executed in the receiver as a result of receiving the message.
Perhaps "send" is not the best name for it.
hope this helps, Henrik
squeak-dev@lists.squeakfoundation.org