Skip to content

Commit

Permalink
Merge pull request #594 from adri09070/debugger-class-side-cleaning
Browse files Browse the repository at this point in the history
Debugger class side cleaning
  • Loading branch information
StevenCostiou authored Sep 29, 2023
2 parents d952aee + db8e28f commit 3450bbf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 31 deletions.
7 changes: 7 additions & 0 deletions src/NewTools-Debugger-Tests/StDebugger.extension.st
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
Extension { #name : 'StDebugger' }

{ #category : '*NewTools-Debugger-Tests' }
StDebugger class >> activatedDebuggerExtensions [

^ self extensionToolsClasses select: [ :extension |
extension showInDebugger ]
]

{ #category : '*NewTools-Debugger-Tests' }
StDebugger >> inspector [

Expand Down
36 changes: 5 additions & 31 deletions src/NewTools-Debugger/StDebugger.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -91,21 +91,13 @@ Class {
],
#classVars : [
'EnableStackColoring',
'ErrorRecursion',
'FastTDD'
],
#category : 'NewTools-Debugger-View',
#package : 'NewTools-Debugger',
#tag : 'View'
}

{ #category : 'accessing' }
StDebugger class >> activatedDebuggerExtensions [

^ self extensionToolsClasses select: [ :extension |
extension showInDebugger ]
]

{ #category : 'commands' }
StDebugger class >> buildCommandsGroupWith: stDebuggerInstance forRoot: rootCommandGroup [

Expand All @@ -125,8 +117,9 @@ StDebugger class >> buildCommandsGroupWith: stDebuggerInstance forRoot: rootComm

{ #category : 'utilities' }
StDebugger class >> closeAllDebuggers [

<script>
StDebugger allInstancesDo: [ :dbg | dbg close ]
self allInstancesDo: [ :dbg | dbg close ]
]

{ #category : 'instance creation' }
Expand Down Expand Up @@ -172,12 +165,12 @@ StDebugger class >> extensionToolsClasses [
extensionClass isOnlyForTests ]
]

{ #category : 'settings' }
{ #category : 'accessing' }
StDebugger class >> fastTDD [
^FastTDD ifNil:[FastTDD := false]
]

{ #category : 'settings' }
{ #category : 'accessing' }
StDebugger class >> fastTDD: aBoolean [

FastTDD := aBoolean
Expand All @@ -204,8 +197,7 @@ StDebugger class >> hasAnyActivatedExtension: extensionsClasses [

{ #category : 'class initialization' }
StDebugger class >> initialize [
self flag: 'Error recursion is used only here?'.
ErrorRecursion := false.

EnableStackColoring := true
]

Expand All @@ -223,18 +215,6 @@ StDebugger class >> openOn: aDebugSession withFullView: aBool andNotification: a
^ debugger
]

{ #category : 'accessing' }
StDebugger class >> sessionClass [
self flag: 'Should be replaced by Sindarin - should even be removed in that case!'.
^ DebugSession
]

{ #category : 'accessing' }
StDebugger class >> spanNewSessionFrom: anotherSession [
self flag: 'Where is that used? 2019-06-28'.
^ anotherSession spanNewSession
]

{ #category : 'settings' }
StDebugger class >> stackColoringSettingOn: aBuilder [

Expand All @@ -254,12 +234,6 @@ StDebugger class >> taskbarIconName [
^#smallDebug
]

{ #category : 'updating - widgets' }
StDebugger class >> updateBlockFor: aDebugger [

^ [ aDebugger updateStep ]
]

{ #category : 'tools registry' }
StDebugger class >> usesExtensions [

Expand Down

0 comments on commit 3450bbf

Please sign in to comment.