Skip to content

Commit

Permalink
Pass an evaluation result when resuming from the debugger [feenkcom/g…
Browse files Browse the repository at this point in the history
  • Loading branch information
chisandrei committed Aug 20, 2024
1 parent 3a6566d commit 64bdb4a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/GToolkit-GemStone-Pharo/GtRsrEvaluatorPromise.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ GtRsrEvaluatorPromise >> signalGemStoneDebugger [
exception signal.

^ exception hasDebugResult
ifTrue: [ exception debugResult ]
ifTrue: [ GtGemstoneEvaluationWithComputedResult new
computedResult: exception debugResult ]
ifFalse: [ evaluationResult ]
]

Expand Down Expand Up @@ -191,12 +192,12 @@ GtRsrEvaluatorPromise >> wait [
self isGtEvaluationException ifTrue: [
evaluationResult := self signalGemStoneDebugger ].

gtSession ifNotNil: [
evaluationResult gtPharoProxyInitializeWithSession: gtSession ].
computedResult := serializationStrategy
ifNil: [ evaluationResult computedResult ]
ifNotNil: [
self deserializeResult: evaluationResult computedResult ].
gtSession ifNotNil: [
computedResult gtPharoProxyInitializeWithSession: gtSession ].

autoCommit ifTrue: [
gtSession autoCommitPromise: self ].
Expand Down

0 comments on commit 64bdb4a

Please sign in to comment.