[Glass] Getting GsContext stack out of GsProcess?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Glass] Getting GsContext stack out of GsProcess?

GLASS mailing list
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,


--

_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass
Reply | Threaded
Open this post in threaded view
|

Re: [Glass] Getting GsContext stack out of GsProcess?

GLASS mailing list
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 <[hidden email]> 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,


--



--

_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass