Thanks for all the help.  Thanks for the sample code also.  My debugging is improving.
<br/><br/><br/><div class='shrinkable-quote'><br/>&gt; On May 17, 2016, at 3:30 PM, Ron Teitelbaum [via Smalltalk] &lt;<a href="/user/SendEmail.jtp?type=node&node=4895740&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt; wrote:
<br/>&gt; 
<br/>&gt; Nice description Herbert! &nbsp;That reminded me of one extra thing. &nbsp;It's kind of hidden but very useful. 
<br/>&gt; 
<br/>&gt; If you need to get out of a loop but don't want to restart and add a halt, you can click on some place in your code then select &quot;Run To Here&quot; from the pop up menu (right click on windows). 
<br/>&gt; 
<br/>&gt; That will continue your code until it gets to where the cursor is currently located and resume debugging from that location. 
<br/>&gt; 
<br/>&gt; That's pretty useful too. 
<br/>&gt; 
<br/>&gt; All the best, 
<br/>&gt; 
<br/>&gt; Ron 
<br/>&gt; 
<br/>&gt; &gt; From: Herbert König 
<br/>&gt; &gt; Sent: Tuesday, May 17, 2016 4:33 PM 
<br/>&gt; &gt; 
<br/>&gt; &gt; Hi Joe, 
<br/>&gt; &gt; 
<br/>&gt; &gt; a practical tip if you debug loops: 
<br/>&gt; &gt; 
<br/>&gt; &gt; myCollection collect: [:each| &quot;You need 'through' to get into the loop&quot; 
<br/>&gt; &gt; 
<br/>&gt; &gt; &nbsp; &nbsp; &nbsp;self doThis. &quot;Through or over are ok here&quot; 
<br/>&gt; &gt; 
<br/>&gt; &gt; &nbsp; &nbsp; &nbsp;self doThatWhichTakesLongToRun. &quot;use over to go over this long running 
<br/>&gt; &gt; method&quot; 
<br/>&gt; &gt; 
<br/>&gt; &gt; &nbsp; &nbsp; &nbsp;somethingElse doMore &quot;here you need to press through again or you'll 
<br/>&gt; &gt; learn about the inner workings of collect :-))&quot;] 
<br/>&gt; &gt; 
<br/>&gt; &gt; I want to mention three things: 
<br/>&gt; &gt; 
<br/>&gt; &gt; 1- if you are inside a loop with no other block inside you can always 
<br/>&gt; &gt; continue with pressing 'Through'. This will then go through the next iteration 
<br/>&gt; &gt; of the loop but step over the method sends inside the loop. 
<br/>&gt; &gt; Methods inside the loop seem to take much longer if you go over them via 
<br/>&gt; &gt; 'through' than if you go over them via 'over'. Especially on slow hardware. 
<br/>&gt; &gt; 
<br/>&gt; &gt; 2- if by accident you press 'over' while debugging the last send inside a loop 
<br/>&gt; &gt; you get to the outer context of your loop which is very confusing at the 
<br/>&gt; &gt; beginning. To get back into your loop you have to step 'into' the block you'll 
<br/>&gt; &gt; see there. 
<br/>&gt; &gt; 
<br/>&gt; &gt; 3- if you've seen enough after being 'through' three iterations of of a 
<br/>&gt; &gt; 1000 iteration loop you continue one level above (top pane of the 
<br/>&gt; &gt; debugger) and debug 'over' that loop. 
<br/>&gt; &gt; 
<br/>&gt; &gt; Most important : experiment. 
<br/>&gt; &gt; 
<br/>&gt; &gt; I have no Squeak at hand so take the above just as a coarse description on 
<br/>&gt; &gt; what you may encounter on your debugging journey. 
<br/>&gt; &gt; 
<br/>&gt; &gt; I usually debug my code into life and I still manage to press the wrong 
<br/>&gt; &gt; buttons while debugging :-)) 
<br/>&gt; &gt; 
<br/>&gt; &gt; 
<br/>&gt; &gt; Cheers, 
<br/>&gt; &gt; 
<br/>&gt; &gt; 
<br/>&gt; &gt; Herbert 
<br/>&gt; &gt; 
<br/>&gt; &gt; Am 17.05.2016 um 19:36 schrieb Ron Teitelbaum: 
<br/>&gt; &gt; &gt; Hi Joe, 
<br/>&gt; &gt; &gt; 
<br/>&gt; &gt; &gt; This is a very good question. &nbsp;It's something that if you been using the 
<br/>&gt; &gt; debugger for a long time comes naturally but when you are new it seems 
<br/>&gt; &gt; strange. 
<br/>&gt; &gt; &gt; 
<br/>&gt; &gt; &gt; Take this code for example: 
<br/>&gt; &gt; &gt; 
<br/>&gt; &gt; &gt; | lock | 
<br/>&gt; &gt; &gt; lock := Mutex new. 
<br/>&gt; &gt; &gt; lock critical: [Transcript show: 'I am here'] 
<br/>&gt; &gt; &gt; 
<br/>&gt; &gt; &gt; debug this code and play with the different options to see how this works. 
<br/>&gt; &gt; In general there are a number of times where what you want to debug is 
<br/>&gt; &gt; inside a block. &nbsp;Getting into that block can be a real pain. &nbsp;In many cases you 
<br/>&gt; &gt; really just want to say take me through this outer code and into that block 
<br/>&gt; &gt; so I can debug what is inside it. (in this case Transcript show: ) 
<br/>&gt; &gt; &gt; 
<br/>&gt; &gt; &gt; &quot;Over&quot; will skip it and &quot;Into&quot; will take you down the rabbit hole of code 
<br/>&gt; &gt; that surrounds it. 
<br/>&gt; &gt; &gt; 
<br/>&gt; &gt; &gt; In this case try debugging that code using the different options and see 
<br/>&gt; &gt; how much easier getting inside that block is when you use Through. 
<br/>&gt; &gt; &gt; 
<br/>&gt; &gt; &gt; I think the accepted description is: 
<br/>&gt; &gt; &gt; Through: if the debugger is going to execute a block, with this button you 
<br/>&gt; &gt; can step though this block. 
<br/>&gt; &gt; &gt; 
<br/>&gt; &gt; &gt; and it makes sense when you think I want to step through what is inside 
<br/>&gt; &gt; the block. &nbsp;&quot;Take me through the inside of this block&quot;. 
<br/>&gt; &gt; &gt; 
<br/>&gt; &gt; &gt; Does that make sense? 
<br/>&gt; &gt; &gt; 
<br/>&gt; &gt; &gt; All the best, 
<br/>&gt; &gt; &gt; 
<br/>&gt; &gt; &gt; Ron Teitelbaum 
<br/>&gt; &gt; &gt; 
<br/>&gt; &gt; &gt;&gt; -----Original Message----- 
<br/>&gt; &gt; &gt;&gt; From: [hidden email] [mailto:beginners- 
<br/>&gt; &gt; &gt;&gt; [hidden email]] On Behalf Of Joseph Alotta 
<br/>&gt; &gt; &gt;&gt; Sent: Tuesday, May 17, 2016 1:07 PM 
<br/>&gt; &gt; &gt;&gt; To: [hidden email] 
<br/>&gt; &gt; &gt;&gt; Subject: [Newbies] whats the difference between over and through 
<br/>&gt; &gt; &gt;&gt; 
<br/>&gt; &gt; &gt;&gt; Greetings, 
<br/>&gt; &gt; &gt;&gt; 
<br/>&gt; &gt; &gt;&gt; What’s the difference between over and through in the debugger? 
<br/>&gt; &gt; &gt;&gt; 
<br/>&gt; &gt; &gt;&gt; Is there something that goes to the next line of code? 
<br/>&gt; &gt; &gt;&gt; 
<br/>&gt; &gt; &gt;&gt; 
<br/>&gt; &gt; &gt;&gt; Sincerely, 
<br/>&gt; &gt; &gt;&gt; 
<br/>&gt; &gt; &gt;&gt; Joe. 
<br/>&gt; &gt; &gt;&gt; 
<br/>&gt; &gt; &gt;&gt; 
<br/>&gt; &gt; &gt;&gt; _______________________________________________ 
<br/>&gt; &gt; &gt;&gt; Beginners mailing list 
<br/>&gt; &gt; &gt;&gt; [hidden email] 
<br/>&gt; &gt; &gt;&gt; <a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_top" rel="nofollow" link="external">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br/>&gt; &gt; &gt; _______________________________________________ 
<br/>&gt; &gt; &gt; Beginners mailing list 
<br/>&gt; &gt; &gt; [hidden email] 
<br/>&gt; &gt; &gt; <a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_top" rel="nofollow" link="external">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br/>&gt; &gt; 
<br/>&gt; &gt; _______________________________________________ 
<br/>&gt; &gt; Beginners mailing list 
<br/>&gt; &gt; [hidden email] 
<br/>&gt; &gt; <a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_top" rel="nofollow" link="external">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br/>&gt; 
<br/>&gt; _______________________________________________ 
<br/>&gt; Beginners mailing list 
<br/>&gt; [hidden email] 
<br/>&gt; <a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_top" rel="nofollow" link="external">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br/>&gt; 
<br/>&gt; 
<br/>&gt; If you reply to this email, your message will be added to the discussion below:
<br/>&gt; <a href="http://forum.world.st/whats-the-difference-between-over-and-through-tp4895443p4895522.html" target="_top" rel="nofollow" link="external">http://forum.world.st/whats-the-difference-between-over-and-through-tp4895443p4895522.html</a><br/>&gt; To start a new topic under Squeak - Beginners, email <a href="/user/SendEmail.jtp?type=node&node=4895740&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a> 
<br/>&gt; To unsubscribe from Squeak - Beginners, click here.
<br/>&gt; NAML
</div><br/>

        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://forum.world.st/whats-the-difference-between-over-and-through-tp4895443p4895740.html">Re: whats the difference between over and through</a><br/>
Sent from the <a href="http://forum.world.st/Squeak-Beginners-f107673.html">Squeak - Beginners mailing list archive</a> at Nabble.com.<br/>