The halt method is used to put a breakpoint in the code, popping up the 
debugger. Just write the following:

 self halt.

and when this gets executed the debugger jumps into action.

I am surprised this is not clear, I thought that all beginner documentation 
mentioned this. Can you tell me what documentation you used to learn the 
language? Now I am afraid that some students of mine don’t know about this, 
while it is so incredibly useful … 

> On Jan 14, 2015, at 10:56, nacho <0800na...@gmail.com> wrote:
> 
> Ben,
> How do you actually use the halt method?
> I don't follow you.
> Seems like an interesting thing to explore.
> thanks
> Nacho
> 
> 
> 
> 
> -----
> Nacho
> Smalltalker apprentice.
> Buenos Aires, Argentina.
> --
> View this message in context: 
> http://forum.world.st/Becoming-proficient-in-Pharo-tp4799284p4799495.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
> 
> 



---> Save our in-boxes! http://emailcharter.org <---

Johan Fabry   -   http://pleiad.cl/~jfabry
PLEIAD lab  -  Computer Science Department (DCC)  -  University of Chile


Reply via email to