<div>That works perfectly in the example code, thank you.</div><div><br></div><div>I'm surprised as I thought I'd tried it and I thought that 'error' sends 'halt'.</div><div><br></div><div><br></div>
<div>Putting a 'self halt' in the problem area doesn't bring up the debugger in my real code. I suspect now that the function in which I'm trying to put a breakpoint is not actually being called, and so I'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'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"><<a href="mailto:bert@freudenbergs.de" target="_blank">bert@freudenbergs.de</a>></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: 'Throwing an error' ] ifError: [:err :rcvr | Transcript show: 'Trapped error']</div></div><div><br>
</div><div>When I 'do it', 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 "self halt":</div><div><br></div><div>[ self halt. self error: 'Throwing an error' ] ifError: [:err :rcvr | Transcript show: 'Trapped error']</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>