[Glass] Debugging an app with Jade

Lyn Headley laheadle at gmail.com
Sat Dec 14 03:05:32 PST 2013


I got a helpful hint from Sebastian Heidbrink, which led me to discover
the ControllingSeaside30Gems wiki page. However, I only seem to be able to
launch fastcgi gems when I want to launch Swazoo gems. If I evaluate the
following:

"Specify Swazoo for runSeasideGems30 and start 1 vm listening on port 8383"
WAGemStoneRunSeasideGems default
        name: 'Swazoo';
        adaptorClass: WAGsSwazooAdaptor;
        ports: #(8383).

WAGemStoneRunSeasideGems startGems.   "start gems"

I can see a couple of topaz processes running:


laheadle  3192  0.0  1.2 210664  6028 ?        S    05:56   0:00
/opt/gemstone/product/bin/topaz -l -e
/opt/gemstone/product/seaside/etc/seaside30.conf
laheadle  3194  0.0  1.7 692900  8900 ?        S    05:56   0:00
/opt/gemstone/product/bin/topaz -l -e
/opt/gemstone/product/seaside/etc/maintenance30.conf


So far, so good. But I can't load http://myhost:8383 in my web browser, and
when I telnet to port 8383, I am told:

0Incorrect FCGI version. Expected: 1 Received: 71Connection closed by
foreign host.





On Fri, Dec 13, 2013 at 11:32 PM, Lyn Headley <laheadle at gmail.com> wrote:

> Hello GLASS!
>
> I am currently porting a seaside app from pharo to Gemstone/S, developing
> using Jade, and am trying to figure out how to get a debugger on an error
> message. I can launch my seaside application by executing the following in
> a Jade workspace:
>
> WAGsSwazooAdaptor new start.
>
> This never returns, makes the workspace unusable, and opens a modal window
> that says Executing Gemstone/Smalltalk code... and offers two buttons: Hard
> Break and Soft Break.
>
> When I load my seaside application by visiting the application entry point
> in a browser, I get the error below. I'm wondering what the best way to
> debug the error is, ideally I'd like to call up a debugger on my code.  I'm
> also interested in looking at the "continuation containing error stack" if
> that would be helpful.
>
> Although the error page says: "To bring up a debugger in your development
> image, press the Debug button in the GemStone/S Transcript window," I can't
> access the Gemstone/S Transcript because the workspace is inaccessible due
> to the modal window.
>
> Here is the error:
>
> a LookupError occurred (error 2053), The instance variable #'footer' was
> not found in evaluating a path expression for the object aLHHeader.
>
> Error during rendering, a continuation containing error stack has been
> saved
>
> To bring up a debugger in your development image, press the Debug button
> in the GemStone/S Transcript window.
>
> For the moment, resuming from a remote debug session is not supported
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20131214/5cc900a5/attachment.html>


More information about the Glass mailing list