[Glass] Getting GsContext stack out of GsProcess?

Mariano Martinez Peck via Glass glass at lists.gemtalksystems.com
Tue Jun 2 13:08:21 PDT 2015


OK, I found a way :)
Will send another email for those who may find this useful.

Cheers,

On Tue, Jun 2, 2015 at 3:29 PM, Mariano Martinez Peck <marianopeck at gmail.com
> wrote:

> Hi guys,
>
> I am trying to use WAGemStoneWalkback >> #renderStackOn: to nicely render
> a continuation that I get from WAObjectLog. The problem is that in the
> ObjectLogEntry what I have is a GsProcess (stored in the 'continuation'
> instVar), not the exception itself.
>
> WAGemStoneWalkback needs some initialization of the frames:
>
> initializeWithException: anException
> | context |
> super initializeWithException: anException.
> *context := self currentContextForWalkback.*
> frames := OrderedCollection new.
> [ context isNil ] whileFalse: [
> frames add: context.
> context := context sender ].
> limit := 5 min: frames size
>
> So...how could I get the 'frames' filled in the WAGemStoneWalkback out of
> the GsProcess stored as continuation in the ObjectLog ?
>
> The complicated part seems to be to get the GsContext our of GsProcess (I
> need to mimic #currentContextForWalkback).
>
> Any idea how could I do this?
>
> Thanks in advance,
>
>
> --
> Mariano
> http://marianopeck.wordpress.com
>



-- 
Mariano
http://marianopeck.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20150602/7b672d04/attachment.html>


More information about the Glass mailing list