Skip to content

Commit

Permalink
tdb: do not allow to step terminated/active processes
Browse files Browse the repository at this point in the history
  • Loading branch information
LinqLover committed Jan 2, 2024
1 parent bf4dea0 commit 7a02689
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ testing
canProceed

self isDisplayingHistory ifTrue: [^ false].
^ process isSuspended and: [process shouldResumeFromDebugger]
^ self processShouldResume
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
testing
canStepForward

^ (self selectedContext ifNil: [^ false])
isDead not
^ self isDisplayingHistory
ifTrue:
[(self selectedContext ifNil: [^ false])
isDead not]
ifFalse:
[self processIsReady]
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
testing
processIsReady

^ process notNil
and: [process isSuspended "do not debug the active process"]
and: [process isTerminated not]
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
testing
processShouldResume

^ process isSuspended and: [process shouldResumeFromDebugger]
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@
"buildRowButtonFrom:with:" : "ct 11/20/2021 16:51",
"buildWith:" : "ct 11/20/2021 22:43",
"cacheSourcesDuring:" : "ct 1/25/2022 01:56",
"canProceed" : "ct 1/26/2022 18:55",
"canProceed" : "ct 1/2/2024 19:37",
"canStepBackward" : "ct 1/12/2022 00:44",
"canStepForward" : "ct 12/30/2021 21:50",
"canStepForward" : "ct 1/2/2024 19:38",
"changed:" : "ct 3/20/2022 00:25",
"changedDependent:" : "ct 2/12/2022 23:35",
"childContextsFor:" : "ct 3/23/2022 22:23",
Expand Down Expand Up @@ -208,6 +208,8 @@
"proceed" : "ct 1/26/2022 19:54",
"process" : "ct 11/20/2021 17:36",
"process:context:" : "ct 1/26/2022 19:50",
"processIsReady" : "ct 1/2/2024 19:38",
"processShouldResume" : "ct 1/2/2024 19:37",
"receiverInspector" : "ct 11/20/2021 16:11",
"receiverInspectorClass" : "ct 2/12/2022 16:41",
"releaseProcess" : "ct 1/26/2022 19:53",
Expand Down

0 comments on commit 7a02689

Please sign in to comment.