Re: Always getting WARequestContextNotFound while debugging

Tim Johnson <[email protected]>
Newsgroups gmane.comp.lang.smalltalk.squeak.seaside
Message-ID <[email protected]>

> On Apr 11, 2019, at 6:23 AM, Mariano Martinez Peck <[email protected]> wrote:
> 
> On Thu, Apr 11, 2019 at 1:27 AM Tim Johnson <[email protected] <mailto:[email protected]>> 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

_______________________________________________
seaside mailing list
[email protected]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.