<div>That works perfectly in the example code, thank you.</div><div><br></div><div>I&#39;m surprised as I thought I&#39;d tried it and I thought that &#39;error&#39; sends &#39;halt&#39;.</div><div><br></div><div><br></div>
<div>Putting a &#39;self halt&#39; in the problem area doesn&#39;t bring up the debugger in my real code.  I suspect now that the function in which I&#39;m trying to put a breakpoint is not actually being called, and so I&#39;ll have to dig deeper to figure out where the error message I am seeing is coming from.</div>
<div><br></div><div>(Perhaps I&#39;ll see if I can find out where the error is being trapped, remove the trap, and hope to get a debugger in the locus of the problem.)</div><div><br></div><div><br></div><div>I appreciate the help.</div>
<div>Clinton Blackmore</div><div><br></div><br><div class="gmail_quote">On Fri, Dec 10, 2010 at 6:55 PM, Bert Freudenberg <span dir="ltr">&lt;<a href="mailto:bert@freudenbergs.de" target="_blank">bert@freudenbergs.de</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div></div><div><br><div><div>On 10.12.2010, at 16:37, Clinton Blackmore wrote:</div>

<br><blockquote type="cite">Greetings.<div><br></div><div>In one area of code, I need to set a break point and do some debugging.  This code is called deeply within a block that is wrapped up so that the end user does not see errors that occur.</div>


<div><br></div><div>In very simplified form, it is like this:</div><div><br></div><div><div>[ self error: &#39;Throwing an error&#39; ] ifError: [:err :rcvr | Transcript show: &#39;Trapped error&#39;]</div></div><div><br>


</div><div>When I &#39;do it&#39;, this example will always trap the error instead of breaking into the debugger (which, quit clearly, it is designed to do.)</div><div><br></div><div>While I shudder to think of how easily it could be abused, there is no way to break into a debugger anyway, is there (without finding and disabling the outer block that is sent ifError)?  Perhaps a hypothetical self untrappableError or self bringUpTheDebuggerPlease?</div>

</blockquote><br></div></div></div><div>To set a breakpoint do &quot;self halt&quot;:</div><div><br></div><div>[ self halt. self error: &#39;Throwing an error&#39; ] ifError: [:err :rcvr | Transcript show: &#39;Trapped error&#39;]</div>

<div><br></div><font color="#888888"><div>
<div style="font-family:Helvetica;font-size:12px"><span style="font-family:Helvetica">- Bert -</span></div><span style="font-size:12px"><br></span>
</div>
<br></font></div><br>_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@lists.squeakfoundation.org" target="_blank">Beginners@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br>
<br></blockquote></div><br>