[Seaside] Always getting WARequestContextNotFound while debugging

Tim Johnson digit at sonic.net
Sun Apr 14 17:26:42 UTC 2019



> On Apr 11, 2019, at 6:23 AM, Mariano Martinez Peck <marianopeck at gmail.com> wrote:
> 
> On Thu, Apr 11, 2019 at 1:27 AM Tim Johnson <digit at sonic.net <mailto:digit at sonic.net>> wrote:
> Hi,
> 
> Since moving to Seaside 3.x in Squeak 5.x, it seems like I haven't been able to debug as well as I used to.  This has been happening for a while but I just thought I'd ask about it now.  It seems worse lately...?
> 
> It seems like after I hit "Debug" on a Seaside Walkback, I go back to my image and enter the debugger.  Then when I try to evaluate / print / inspect various statements maybe three items down the stack, I always end up with something like a WARequestContextNotFound window.  
> 
> 
> Hi Tim,
> 
> I know that feeling. That's why some time ago I implemented my own workaround (super hackish):
> 
> https://github.com/marianopeck/SeasideDynamicVariablesDebugger <https://github.com/marianopeck/SeasideDynamicVariablesDebugger> 

Hi Mariano,

Glad I'm not alone!  :)

Thanks for this!  It is super cool.  I have loaded it successfully in Squeak 5.2 running Seaside 3.2.  

(One immediate difference I noticed:  no more Seaside walkback in the browser.  [Not a problem!  Just noting here.]  A stalled browser means I need to go to my image, where I will find a Debugger open.)

So, it did not work with Squeak out-of-the-box, but I have made the necessary modifications for it to work.  

I have adapted WADynamicVariable>>#getAllOpenedSeasideDebuggers and added a package protocol method to Debugger, such that #session just returns self.

Unfortunately I don't believe I can use this "cypress" packaged format with Squeak (I have no 'gitfiletree', only 'filetree') so I do not know how to contribute my changes (from Squeak) as a fork commit & pull request.  Therefore, attached is an old-fashioned change set file.

Summary of changes:
	* adjustments for platform independence 
	* searching for Squeak Debuggers now too
	* package protocol on Debugger:  I assume this means this changeset won't load on platforms without a Debugger class (?)
	* broke up WADynamicVariable>>#getAllOpenedSeasideDebuggers into multiple methods
	* added carriage returns to Transcript shows
	* typo fix

If you do have some suggestions for another way for me to contribute this please let me know.  I am quite comfortable with Git and etc., but without GitFileTree I imagine I may be out of luck.

Thanks again,
Tim






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/seaside/attachments/20190414/42c3774e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SeasideDynamicVariablesDebugger-Squeak-tcj.1.cs
Type: application/octet-stream
Size: 3644 bytes
Desc: not available
URL: <http://lists.squeakfoundation.org/pipermail/seaside/attachments/20190414/42c3774e/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/seaside/attachments/20190414/42c3774e/attachment-0001.html>


More information about the seaside mailing list