Skip to content

Commit

Permalink
Putting the exception to nil when clearing debug sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenCostiou committed Dec 4, 2020
1 parent 4fcd188 commit c689421
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Debugger-Model-Tests/DebuggerModelTest.class.st
Expand Up @@ -23,6 +23,15 @@ DebuggerModelTest >> setUp [
session:= process newDebugSessionNamed: 'test session' startedAt: context.
]

{ #category : #tests }
DebuggerModelTest >> testClearDebugSession [

session clear.
self assert: session exception equals: nil.
self assert: session interruptedContext equals: nil.
self assert: session interruptedProcess equals: nil
]

{ #category : #tests }
DebuggerModelTest >> testCorrectlyCreateDebugSession [

Expand Down
1 change: 1 addition & 0 deletions src/Debugger-Model/DebugSession.class.st
Expand Up @@ -57,6 +57,7 @@ DebugSession class >> named: aString on: aProcess startedAt: aContext [
DebugSession >> clear [
"If after resuming the process the user does plan to reuse this session with
the same process, it should call this method."
exception := nil.
interruptedProcess := nil.
self updateContextTo: nil
]
Expand Down

0 comments on commit c689421

Please sign in to comment.