[Seaside] Re: The session in the debugger

Klaus D. Witzel klaus.witzel at cobss.com
Sun Feb 4 20:33:42 UTC 2007


On Sun, 04 Feb 2007 19:19:00 +0100, Philippe Marschall wrote:
> Hi
>
> One of the most annoying things about Seaside for me is that you can't
> access the session in the debugger. Often when debugging code that
> needs to access some session data I find myself writing code like
> this:
>
> aBuggedMethod
>     "some code"
>     session := self session.
>     self halt.
>     "more code"
>
> and then restarting the method. I am sick of it. This just sucks. So
> recently I meant someone with too much time who would like to make a
> valuable contribution to Seaside. I told him about this and he said he
> would do it if I find at least 5 people to whom it is important.

Counting someone at our table in Bern plus /my, you've found five people :)

Attached is a .cs which shows (self session) in the debugger (same place  
as in Michel's VW solution) only if (aContext receiver respondsTo:  
#session). #session seems not to be implemented in the stock image. When  
the session item is selected it can be inspected but update with #accept  
does not update.

> Personally I don't care how ugly the solution is as long as Seaside
> still works. It doesn't have to be a general solutions. It can be a
> very evil changeset that causes famine, plague, small pocks and
> shortens life by 10 years. That desperately I want it.

Tested it on 3.7/8/9, let me know how it works.

If someone needs the name emphasized in the debugger, please post how  
you'd like to have it.

/Klaus

> If you feel the same way raise your hand now.
>
> Cheers
> Philippe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DebugSessionVariable-kwl.1.cs
Type: application/octet-stream
Size: 2957 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/seaside/attachments/20070204/910bd3bc/DebugSessionVariable-kwl.1.obj


More information about the Seaside mailing list