Sophie (itsme213 | 14 Nov 01:49
Favicon

Seaside 2.9 & dynamic variables

Has 2.9 changed how it does dynamic variables to some form of thread-local 
variables? If so, does that mean I can stop in the debugger and see those 
variables more easily? In 2.8 they were often visible through session, which 
was not accessible in the debugger.

Thanks! 
Julian Fitzell | 14 Nov 08:02

Re: Seaside 2.9 & dynamic variable

Ironically, not necessarily. Squeak's debugger, at least, doesn't
necessarily use the process that was running the code when an error
occured to step through it, which means the process variable isn't
set.

The new exception handler code does however catch a Notification
indicating that the WACurrentRequestContext process variable was not
set and resumes with the correct value. This allows you to step over
code that uses that process variable in most cases. There is also a
slight modification in the Seaside-Squeak-Development package to make
inspecting things that depend on the current request context work from
the Debugger.

We're trying to make this better so do please let us know if you run
into problems of this sort with 2.9.

Julian

On Thu, Nov 13, 2008 at 4:51 PM, Sophie (itsme213) <itsme213 <at> hotmail.com> wrote:
> Has 2.9 changed how it does dynamic variables to some form of thread-local
> variables? If so, does that mean I can stop in the debugger and see those
> variables more easily? In 2.8 they were often visible through session, which
> was not accessible in the debugger.
>
> Thanks!
>
>
>
> _______________________________________________
> seaside mailing list
(Continue reading)

Göran Krampe | 17 Nov 13:52

Re: Seaside 2.9 & dynamic variable

Hey!

Just wanted to mention that someone said at OOPSLA (when I showed 
Blackfoot - my SimpleCGI implementation) that the Notification-trick 
actually shows up in performance profiling, so we might want to change 
to something else. Keith has made a package for "Process locals" btw, we 
use it in Gjallar.

regards, Göran

PS. But Julian is of course still correct regarding debugger.
Julian Fitzell | 17 Nov 17:02

Re: Seaside 2.9 & dynamic variable

Hi Göran,

What do you mean the "notification trick"? Are you talking about 2.8
or 2.9? In 2.9, an Error is only signaled when the process variable is
accessed but not defined. This should only happen due to a
misconfiguration or in the debugger. The exception handlers facilitate
debugging by handling the error and resuming with the correct value.

Julian

On Mon, Nov 17, 2008 at 4:52 AM, Göran Krampe <goran <at> krampe.se> wrote:
> Hey!
>
> Just wanted to mention that someone said at OOPSLA (when I showed Blackfoot
> - my SimpleCGI implementation) that the Notification-trick actually shows up
> in performance profiling, so we might want to change to something else.
> Keith has made a package for "Process locals" btw, we use it in Gjallar.
>
> regards, Göran
>
> PS. But Julian is of course still correct regarding debugger.
>
> _______________________________________________
> seaside mailing list
> seaside <at> lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
Karsten | 17 Nov 17:11
Favicon

Re: Seaside 2.9 & dynamic variable

I think he refers to the WADynamicVariable implementation as a 
Notification subclass.

Kind Regards
Karsten

Julian Fitzell wrote:
> Hi Göran,
>
> What do you mean the "notification trick"? Are you talking about 2.8
> or 2.9? In 2.9, an Error is only signaled when the process variable is
> accessed but not defined. This should only happen due to a
> misconfiguration or in the debugger. The exception handlers facilitate
> debugging by handling the error and resuming with the correct value.
>
> Julian
>
> On Mon, Nov 17, 2008 at 4:52 AM, Göran Krampe <goran <at> krampe.se> wrote:
>   
>> Hey!
>>
>> Just wanted to mention that someone said at OOPSLA (when I showed Blackfoot
>> - my SimpleCGI implementation) that the Notification-trick actually shows up
>> in performance profiling, so we might want to change to something else.
>> Keith has made a package for "Process locals" btw, we use it in Gjallar.
>>
>> regards, Göran
>>
>> PS. But Julian is of course still correct regarding debugger.
>>
(Continue reading)

Julian Fitzell | 18 Nov 06:34

Re: Seaside 2.9 & dynamic variable

Ok, well in that case, that is no longer used in 2.9. As the original
poster said, we are now using a process variable.

Julian

On Mon, Nov 17, 2008 at 8:11 AM, Karsten <karsten <at> heeg.de> wrote:
> I think he refers to the WADynamicVariable implementation as a Notification
> subclass.
>
> Kind Regards
> Karsten
>
>
>
> Julian Fitzell wrote:
>>
>> Hi Göran,
>>
>> What do you mean the "notification trick"? Are you talking about 2.8
>> or 2.9? In 2.9, an Error is only signaled when the process variable is
>> accessed but not defined. This should only happen due to a
>> misconfiguration or in the debugger. The exception handlers facilitate
>> debugging by handling the error and resuming with the correct value.
>>
>> Julian
>>
>> On Mon, Nov 17, 2008 at 4:52 AM, Göran Krampe <goran <at> krampe.se> wrote:
>>
>>>
>>> Hey!
(Continue reading)


Gmane