<div dir="ltr">Hi guys,<div><br></div><div>This thing I will ask in this email it&#39;s in my mind since YEARS. But I have always thought it was like that and that there was nothing we could do. However, I think it&#39;s time I ask again :)</div><div><br></div><div>For those that have used Seaside, and you try to debug, you know that upon request processing seaside uses Exceptions mechanisim to always have access to the request, session, etc. They way that is done is very smart :)</div><div><br></div><div> WACurrentRequestContext use: self during: aBlock<br clear="all"><div><br></div><div>In that case, &quot;self&quot; is the request instance and aBlock the closure that takes care of the request processing. So, inside that closure, everywhere you do &quot;WACurrentRequestContext value&quot; you get the correct request instance.</div><div><br></div><div>So..that&#39;s great for Seaside, but debugging gets complicated. While you can restart, proceed, etc, once inside debugger, you  cannot evaluate any piece of code that will use the session  or request because you get a WARequestContextNotFound. Of course, because I guess the evaluation you do from cmd+d on a piece of text or via the debugger inspector, creates another closure/context which does not receive the WACurrentRequestContext instance. </div><div><br></div><div>Now....besides WACurrentRequestContext I have my own class UserContextInformation where I basically have a bunch of stuff associated to the logged user. And I do exactly the same as the WACurrentRequestContext. And I have the same problem. I really want to be able to fix this.</div><div><br></div><div>Anyone have an idea on how can I do it? I guess I can change the debugger, in the place where I evaluate code so that I wrap that evaluation with my request context instance???</div><div><br></div><div>Thoughts?</div><div><br></div><div><br></div>-- <br><div class="gmail_signature">Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br></div>
</div></div>