-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tdb: do not allow to step terminated/active processes
- Loading branch information
Showing
5 changed files
with
21 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 6 additions & 2 deletions
8
packages/TraceDebugger.package/TraceDebugger.class/instance/canStepForward.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
6 changes: 6 additions & 0 deletions
6
packages/TraceDebugger.package/TraceDebugger.class/instance/processIsReady.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
4 changes: 4 additions & 0 deletions
4
packages/TraceDebugger.package/TraceDebugger.class/instance/processShouldResume.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
testing | ||
processShouldResume | ||
|
||
^ process isSuspended and: [process shouldResumeFromDebugger] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters