diff --git a/src/NewTools-Debugger-Commands/StCopyStackToClipboardCommand.class.st b/src/NewTools-Debugger-Commands/StCopyStackToClipboardCommand.class.st index 66aaa1838..5667be3cc 100644 --- a/src/NewTools-Debugger-Commands/StCopyStackToClipboardCommand.class.st +++ b/src/NewTools-Debugger-Commands/StCopyStackToClipboardCommand.class.st @@ -2,38 +2,39 @@ Requests the debugger to copy its stack on the Clipboard " Class { - #name : #StCopyStackToClipboardCommand, - #superclass : #StDebuggerCommand, - #category : #'NewTools-Debugger-Commands' + #name : 'StCopyStackToClipboardCommand', + #superclass : 'StDebuggerCommand', + #category : 'NewTools-Debugger-Commands', + #package : 'NewTools-Debugger-Commands' } -{ #category : #initialization } +{ #category : 'initialization' } StCopyStackToClipboardCommand class >> defaultDescription [ ^ 'Copy the debugging stack to the clipboard.' ] -{ #category : #initialization } +{ #category : 'initialization' } StCopyStackToClipboardCommand class >> defaultIconName [ ^ #debuggerCopyStack ] -{ #category : #initialization } +{ #category : 'initialization' } StCopyStackToClipboardCommand class >> defaultName [ ^ 'Copy Stack to Clipboard' ] -{ #category : #initialization } +{ #category : 'initialization' } StCopyStackToClipboardCommand class >> defaultShortcut [ ^ nil ] -{ #category : #testing } +{ #category : 'testing' } StCopyStackToClipboardCommand >> appliesTo: aDebugger [ ^ true ] -{ #category : #hooks } +{ #category : 'hooks' } StCopyStackToClipboardCommand >> execute [ self debugger copyStackToClipboard ] diff --git a/src/NewTools-Debugger-Commands/StDebuggerCommand.class.st b/src/NewTools-Debugger-Commands/StDebuggerCommand.class.st index f8dcc4101..d321c9d08 100644 --- a/src/NewTools-Debugger-Commands/StDebuggerCommand.class.st +++ b/src/NewTools-Debugger-Commands/StDebuggerCommand.class.st @@ -2,12 +2,13 @@ I command actions that can be requested from a debugger " Class { - #name : #StDebuggerCommand, - #superclass : #CmCommand, - #category : #'NewTools-Debugger-Commands' + #name : 'StDebuggerCommand', + #superclass : 'CmCommand', + #category : 'NewTools-Debugger-Commands', + #package : 'NewTools-Debugger-Commands' } -{ #category : #'instance creation' } +{ #category : 'instance creation' } StDebuggerCommand class >> codeContextMenuCommandsForDebugger: debugger [ ^ self @@ -15,17 +16,17 @@ StDebuggerCommand class >> codeContextMenuCommandsForDebugger: debugger [ for: debugger ] -{ #category : #initialization } +{ #category : 'initialization' } StDebuggerCommand class >> defaultIconName [ ^ self subclassResponsibility ] -{ #category : #initialization } +{ #category : 'initialization' } StDebuggerCommand class >> defaultShortcut [ ^ self subclassResponsibility ] -{ #category : #'instance creation' } +{ #category : 'instance creation' } StDebuggerCommand class >> forSpecContext: anObject [ ^ (self forSpecWithIconNamed: self defaultIconName @@ -34,18 +35,18 @@ StDebuggerCommand class >> forSpecContext: anObject [ yourself ] -{ #category : #testing } +{ #category : 'testing' } StDebuggerCommand class >> isAbstract [ ^ self == StDebuggerCommand ] -{ #category : #default } +{ #category : 'default' } StDebuggerCommand class >> shortName [ ^self defaultName ] -{ #category : #'instance creation' } +{ #category : 'instance creation' } StDebuggerCommand class >> toolbarCommandsForDebugger: debugger [ ^ self @@ -53,7 +54,7 @@ StDebuggerCommand class >> toolbarCommandsForDebugger: debugger [ for: debugger ] -{ #category : #comparing } +{ #category : 'comparing' } StDebuggerCommand >> = anObject [ "Answer whether the receiver and anObject represent the same object." @@ -65,35 +66,35 @@ StDebuggerCommand >> = anObject [ and: [ basicName = anObject name ] ] -{ #category : #testing } +{ #category : 'testing' } StDebuggerCommand >> appliesTo: aDebugger [ ^ aDebugger canExecuteDebugCommand ] -{ #category : #accessing } +{ #category : 'accessing' } StDebuggerCommand >> canBeExecuted [ ^ self appliesTo: self debugger ] -{ #category : #accessing } +{ #category : 'accessing' } StDebuggerCommand >> context: anObject [ super context: anObject ] -{ #category : #accessing } +{ #category : 'accessing' } StDebuggerCommand >> debugger [ ^self context ] -{ #category : #comparing } +{ #category : 'comparing' } StDebuggerCommand >> hash [ "Answer an integer value that is related to the identity of the receiver." ^ context hash bitXor: basicName hash ] -{ #category : #initialization } +{ #category : 'initialization' } StDebuggerCommand >> initialize [ super initialize. diff --git a/src/NewTools-Debugger-Commands/StDebuggerSettingsCommand.class.st b/src/NewTools-Debugger-Commands/StDebuggerSettingsCommand.class.st index d6788a5d4..1a756c908 100644 --- a/src/NewTools-Debugger-Commands/StDebuggerSettingsCommand.class.st +++ b/src/NewTools-Debugger-Commands/StDebuggerSettingsCommand.class.st @@ -2,32 +2,33 @@ I open a settings browser focused on the debugger and debugging systems settings. " Class { - #name : #StDebuggerSettingsCommand, - #superclass : #StDebuggerCommand, - #category : #'NewTools-Debugger-Commands' + #name : 'StDebuggerSettingsCommand', + #superclass : 'StDebuggerCommand', + #category : 'NewTools-Debugger-Commands', + #package : 'NewTools-Debugger-Commands' } -{ #category : #default } +{ #category : 'default' } StDebuggerSettingsCommand class >> defaultDescription [ ^'I open a settings browser focused on the debugger and debugging systems settings.' ] -{ #category : #initialization } +{ #category : 'initialization' } StDebuggerSettingsCommand class >> defaultIconName [ ^ #configuration ] -{ #category : #default } +{ #category : 'default' } StDebuggerSettingsCommand class >> defaultName [ ^'Settings' ] -{ #category : #initialization } +{ #category : 'initialization' } StDebuggerSettingsCommand class >> defaultShortcut [ ^$f meta, $s meta ] -{ #category : #executing } +{ #category : 'executing' } StDebuggerSettingsCommand >> execute [ SettingBrowser new diff --git a/src/NewTools-Debugger-Commands/StDebuggerToggleFilterStackCommand.class.st b/src/NewTools-Debugger-Commands/StDebuggerToggleFilterStackCommand.class.st index c6b43057d..7d3b3f7f7 100644 --- a/src/NewTools-Debugger-Commands/StDebuggerToggleFilterStackCommand.class.st +++ b/src/NewTools-Debugger-Commands/StDebuggerToggleFilterStackCommand.class.st @@ -2,32 +2,33 @@ I toggle the stack filtering in the debugger on and off, and I trigger a debugger update. " Class { - #name : #StDebuggerToggleFilterStackCommand, - #superclass : #StDebuggerCommand, - #category : #'NewTools-Debugger-Commands' + #name : 'StDebuggerToggleFilterStackCommand', + #superclass : 'StDebuggerCommand', + #category : 'NewTools-Debugger-Commands', + #package : 'NewTools-Debugger-Commands' } -{ #category : #default } +{ #category : 'default' } StDebuggerToggleFilterStackCommand class >> defaultDescription [ ^'Toggle stack filtering on and off' ] -{ #category : #initialization } +{ #category : 'initialization' } StDebuggerToggleFilterStackCommand class >> defaultIconName [ ^ #changeSorter ] -{ #category : #default } +{ #category : 'default' } StDebuggerToggleFilterStackCommand class >> defaultName [ ^'Toggle stack filtering' ] -{ #category : #initialization } +{ #category : 'initialization' } StDebuggerToggleFilterStackCommand class >> defaultShortcut [ ^$c meta, $f meta ] -{ #category : #executing } +{ #category : 'executing' } StDebuggerToggleFilterStackCommand >> execute [ StDebuggerActionModel shouldFilterStack: StDebuggerActionModel shouldFilterStack not. self context updateStep diff --git a/src/NewTools-Debugger-Commands/StDefineClassCommand.class.st b/src/NewTools-Debugger-Commands/StDefineClassCommand.class.st index 84fb387ac..dc19be8b4 100644 --- a/src/NewTools-Debugger-Commands/StDefineClassCommand.class.st +++ b/src/NewTools-Debugger-Commands/StDefineClassCommand.class.st @@ -2,22 +2,23 @@ I request the debugger to define a missing class in case the current context is interrupted on a DNU exception and a receiver that is an unknown symbol " Class { - #name : #StDefineClassCommand, - #superclass : #StDefineMissingEntityCommand, - #category : #'NewTools-Debugger-Commands' + #name : 'StDefineClassCommand', + #superclass : 'StDefineMissingEntityCommand', + #category : 'NewTools-Debugger-Commands', + #package : 'NewTools-Debugger-Commands' } -{ #category : #accessing } +{ #category : 'accessing' } StDefineClassCommand class >> defaultName [ ^ 'Create missing class' ] -{ #category : #testing } +{ #category : 'testing' } StDefineClassCommand >> appliesTo: aDebugger [ ^ aDebugger canExecuteCreateMissingClassCommand ] -{ #category : #executing } +{ #category : 'executing' } StDefineClassCommand >> execute [ self debugger createMissingClass ] diff --git a/src/NewTools-Debugger-Commands/StDefineMethodCommand.class.st b/src/NewTools-Debugger-Commands/StDefineMethodCommand.class.st index b7478e74b..990b74051 100644 --- a/src/NewTools-Debugger-Commands/StDefineMethodCommand.class.st +++ b/src/NewTools-Debugger-Commands/StDefineMethodCommand.class.st @@ -2,22 +2,23 @@ I request the debugger to define a missing method in case the current context is interrupted on a DNU exception " Class { - #name : #StDefineMethodCommand, - #superclass : #StDefineMissingEntityCommand, - #category : #'NewTools-Debugger-Commands' + #name : 'StDefineMethodCommand', + #superclass : 'StDefineMissingEntityCommand', + #category : 'NewTools-Debugger-Commands', + #package : 'NewTools-Debugger-Commands' } -{ #category : #accessing } +{ #category : 'accessing' } StDefineMethodCommand class >> defaultName [ ^ 'Create missing command' ] -{ #category : #testing } +{ #category : 'testing' } StDefineMethodCommand >> appliesTo: aDebugger [ ^ aDebugger canExecuteCreateMissingMethodCommand ] -{ #category : #hooks } +{ #category : 'hooks' } StDefineMethodCommand >> execute [ self debugger createMissingMethod ] diff --git a/src/NewTools-Debugger-Commands/StDefineMissingEntityCommand.class.st b/src/NewTools-Debugger-Commands/StDefineMissingEntityCommand.class.st index 4eaae5d80..67d71273d 100644 --- a/src/NewTools-Debugger-Commands/StDefineMissingEntityCommand.class.st +++ b/src/NewTools-Debugger-Commands/StDefineMissingEntityCommand.class.st @@ -9,67 +9,68 @@ For a given debugging context (i.e., the context of the debugger's debug session For instance, if we are in the context of a DNU, it makes only sense to propose to create the missing method (StCreateMissingMethodDebugCommand) and all other subcommands are inapplicable. " Class { - #name : #StDefineMissingEntityCommand, - #superclass : #StDebuggerCommand, + #name : 'StDefineMissingEntityCommand', + #superclass : 'StDebuggerCommand', #instVars : [ 'subCommands' ], - #category : #'NewTools-Debugger-Commands' + #category : 'NewTools-Debugger-Commands', + #package : 'NewTools-Debugger-Commands' } -{ #category : #accessing } +{ #category : 'accessing' } StDefineMissingEntityCommand class >> defaultDescription [ ^ 'Create the missing class or method in the user prompted class, and restart the debugger at the location where it can be edited.' ] -{ #category : #initialization } +{ #category : 'initialization' } StDefineMissingEntityCommand class >> defaultIconName [ ^ #debuggerDefineEntity ] -{ #category : #accessing } +{ #category : 'accessing' } StDefineMissingEntityCommand class >> defaultName [ ^ 'Create' ] -{ #category : #initialization } +{ #category : 'initialization' } StDefineMissingEntityCommand class >> defaultShortcut [ ^ nil ] -{ #category : #private } +{ #category : 'private' } StDefineMissingEntityCommand >> applicableCommand [ ^ subCommands detect: [ :subCommand | subCommand canBeExecuted ] ifNone: [ nil ] ] -{ #category : #testing } +{ #category : 'testing' } StDefineMissingEntityCommand >> appliesTo: aDebugger [ ^ subCommands anySatisfy: [ :subCommand | subCommand appliesTo: aDebugger ] ] -{ #category : #accessing } +{ #category : 'accessing' } StDefineMissingEntityCommand >> context: aDebugger [ super context: aDebugger. subCommands := self class allSubclasses collect: [ :subCommand | subCommand forContext: aDebugger ] ] -{ #category : #executing } +{ #category : 'executing' } StDefineMissingEntityCommand >> execute [ self applicableCommand ifNotNil: [ :cmd | cmd execute ] ] -{ #category : #initialization } +{ #category : 'initialization' } StDefineMissingEntityCommand >> initialize [ super initialize. subCommands := OrderedCollection new ] -{ #category : #accessing } +{ #category : 'accessing' } StDefineMissingEntityCommand >> subCommands [ ^subCommands ] diff --git a/src/NewTools-Debugger-Commands/StDefineSubclassResponsabilityCommand.class.st b/src/NewTools-Debugger-Commands/StDefineSubclassResponsabilityCommand.class.st index b6798cacf..dd7a4eeb5 100644 --- a/src/NewTools-Debugger-Commands/StDefineSubclassResponsabilityCommand.class.st +++ b/src/NewTools-Debugger-Commands/StDefineSubclassResponsabilityCommand.class.st @@ -2,32 +2,33 @@ I request the debugger to define a subclass responsibility method, in case the current context is interrupted on a subclass responsibility exception " Class { - #name : #StDefineSubclassResponsabilityCommand, - #superclass : #StDefineMissingEntityCommand, - #category : #'NewTools-Debugger-Commands' + #name : 'StDefineSubclassResponsabilityCommand', + #superclass : 'StDefineMissingEntityCommand', + #category : 'NewTools-Debugger-Commands', + #package : 'NewTools-Debugger-Commands' } -{ #category : #accessing } +{ #category : 'accessing' } StDefineSubclassResponsabilityCommand class >> defaultDescription [ ^ 'Create a method in a class having the responsability to implement it.' ] -{ #category : #initialization } +{ #category : 'initialization' } StDefineSubclassResponsabilityCommand class >> defaultIconName [ ^ #changeAdd ] -{ #category : #accessing } +{ #category : 'accessing' } StDefineSubclassResponsabilityCommand class >> defaultName [ ^ 'Create subclass responsibility' ] -{ #category : #testing } +{ #category : 'testing' } StDefineSubclassResponsabilityCommand >> appliesTo: aDebugger [ ^ aDebugger canExecuteCreateSubclassResponsibilityCommand ] -{ #category : #actions } +{ #category : 'actions' } StDefineSubclassResponsabilityCommand >> execute [ self debugger createSubclassResponsibility ] diff --git a/src/NewTools-Debugger-Commands/StFileOutMethodCommand.class.st b/src/NewTools-Debugger-Commands/StFileOutMethodCommand.class.st index 353d2342c..8c73c00b1 100644 --- a/src/NewTools-Debugger-Commands/StFileOutMethodCommand.class.st +++ b/src/NewTools-Debugger-Commands/StFileOutMethodCommand.class.st @@ -2,37 +2,38 @@ Requests the debugger to file out the method of the selected context in the stack " Class { - #name : #StFileOutMethodCommand, - #superclass : #StDebuggerCommand, - #category : #'NewTools-Debugger-Commands' + #name : 'StFileOutMethodCommand', + #superclass : 'StDebuggerCommand', + #category : 'NewTools-Debugger-Commands', + #package : 'NewTools-Debugger-Commands' } -{ #category : #accessing } +{ #category : 'accessing' } StFileOutMethodCommand class >> defaultDescription [ ^ 'Write the source code of the selected method on a file.' ] -{ #category : #initialization } +{ #category : 'initialization' } StFileOutMethodCommand class >> defaultIconName [ ^ #smallExport ] -{ #category : #accessing } +{ #category : 'accessing' } StFileOutMethodCommand class >> defaultName [ ^ 'File out method' ] -{ #category : #initialization } +{ #category : 'initialization' } StFileOutMethodCommand class >> defaultShortcut [ ^ nil ] -{ #category : #testing } +{ #category : 'testing' } StFileOutMethodCommand >> appliesTo: aDebugger [ ^ true ] -{ #category : #actions } +{ #category : 'actions' } StFileOutMethodCommand >> execute [ self debugger fileOutSelectedContext ] diff --git a/src/NewTools-Debugger-Commands/StPeelToFirstCommand.class.st b/src/NewTools-Debugger-Commands/StPeelToFirstCommand.class.st index 8d85b3cb2..0e39f173e 100644 --- a/src/NewTools-Debugger-Commands/StPeelToFirstCommand.class.st +++ b/src/NewTools-Debugger-Commands/StPeelToFirstCommand.class.st @@ -2,37 +2,38 @@ Requests the debugger to peel the stack to the first occurrence of the currently selected message in the stack " Class { - #name : #StPeelToFirstCommand, - #superclass : #StDebuggerCommand, - #category : #'NewTools-Debugger-Commands' + #name : 'StPeelToFirstCommand', + #superclass : 'StDebuggerCommand', + #category : 'NewTools-Debugger-Commands', + #package : 'NewTools-Debugger-Commands' } -{ #category : #accessing } +{ #category : 'accessing' } StPeelToFirstCommand class >> defaultDescription [ ^ 'Peels the stack back to the second occurance of the currently selected message.' ] -{ #category : #initialization } +{ #category : 'initialization' } StPeelToFirstCommand class >> defaultIconName [ ^ #down ] -{ #category : #accessing } +{ #category : 'accessing' } StPeelToFirstCommand class >> defaultName [ ^ 'Peel to first like this' ] -{ #category : #initialization } +{ #category : 'initialization' } StPeelToFirstCommand class >> defaultShortcut [ ^ nil ] -{ #category : #testing } +{ #category : 'testing' } StPeelToFirstCommand >> appliesTo: aDebugger [ ^ true ] -{ #category : #actions } +{ #category : 'actions' } StPeelToFirstCommand >> execute [ self debugger peelToFirstLike: self debugger currentContext ] diff --git a/src/NewTools-Debugger-Commands/StProceedCommand.class.st b/src/NewTools-Debugger-Commands/StProceedCommand.class.st index 64e2c3b93..128952be8 100644 --- a/src/NewTools-Debugger-Commands/StProceedCommand.class.st +++ b/src/NewTools-Debugger-Commands/StProceedCommand.class.st @@ -2,33 +2,34 @@ Request the debugger to proceed the debug session " Class { - #name : #StProceedCommand, - #superclass : #StDebuggerCommand, - #category : #'NewTools-Debugger-Commands' + #name : 'StProceedCommand', + #superclass : 'StDebuggerCommand', + #category : 'NewTools-Debugger-Commands', + #package : 'NewTools-Debugger-Commands' } -{ #category : #default } +{ #category : 'default' } StProceedCommand class >> defaultDescription [ ^ 'Relinquish debugger control and proceed execution from the current point of debugger control.' ] -{ #category : #initialization } +{ #category : 'initialization' } StProceedCommand class >> defaultIconName [ ^ #debuggerProceed ] -{ #category : #default } +{ #category : 'default' } StProceedCommand class >> defaultName [ ^ 'Proceed' ] -{ #category : #initialization } +{ #category : 'initialization' } StProceedCommand class >> defaultShortcut [ ^ PharoShortcuts current resumeExecutionShortcut ] -{ #category : #hooks } +{ #category : 'hooks' } StProceedCommand >> execute [ self debugger proceedDebugSession ] diff --git a/src/NewTools-Debugger-Commands/StRestartCommand.class.st b/src/NewTools-Debugger-Commands/StRestartCommand.class.st index bce391c01..3e49d231a 100644 --- a/src/NewTools-Debugger-Commands/StRestartCommand.class.st +++ b/src/NewTools-Debugger-Commands/StRestartCommand.class.st @@ -2,40 +2,41 @@ Request the debugger to restart its current context " Class { - #name : #StRestartCommand, - #superclass : #StDebuggerCommand, - #category : #'NewTools-Debugger-Commands' + #name : 'StRestartCommand', + #superclass : 'StDebuggerCommand', + #category : 'NewTools-Debugger-Commands', + #package : 'NewTools-Debugger-Commands' } -{ #category : #default } +{ #category : 'default' } StRestartCommand class >> defaultDescription [ ^ 'Go back to the start of the current execution context, resetting all local variables and take debugger control.' ] -{ #category : #initialization } +{ #category : 'initialization' } StRestartCommand class >> defaultIconName [ ^ #debuggerRestart ] -{ #category : #default } +{ #category : 'default' } StRestartCommand class >> defaultName [ ^ 'Restart' ] -{ #category : #initialization } +{ #category : 'initialization' } StRestartCommand class >> defaultShortcut [ ^ PharoShortcuts current restartExecutionShortcut ] -{ #category : #testing } +{ #category : 'testing' } StRestartCommand >> appliesTo: aDebugger [ ^ aDebugger canExecuteRestartCommand ] -{ #category : #hooks } +{ #category : 'hooks' } StRestartCommand >> execute [ self debugger restartCurrentContext ] diff --git a/src/NewTools-Debugger-Commands/StReturnValueCommand.class.st b/src/NewTools-Debugger-Commands/StReturnValueCommand.class.st index 6983713b1..c2fcc6c02 100644 --- a/src/NewTools-Debugger-Commands/StReturnValueCommand.class.st +++ b/src/NewTools-Debugger-Commands/StReturnValueCommand.class.st @@ -2,47 +2,48 @@ Requests the debugger to return from the current context with the result of the evaluation of a user-defined expression. " Class { - #name : #StReturnValueCommand, - #superclass : #StDebuggerCommand, - #category : #'NewTools-Debugger-Commands' + #name : 'StReturnValueCommand', + #superclass : 'StDebuggerCommand', + #category : 'NewTools-Debugger-Commands', + #package : 'NewTools-Debugger-Commands' } -{ #category : #accessing } +{ #category : 'accessing' } StReturnValueCommand class >> defaultDescription [ ^ 'Return of a given value to the previous context.' ] -{ #category : #initialization } +{ #category : 'initialization' } StReturnValueCommand class >> defaultIconName [ ^ #debuggerReturn ] -{ #category : #accessing } +{ #category : 'accessing' } StReturnValueCommand class >> defaultLabel [ ^ 'Return entered value' ] -{ #category : #accessing } +{ #category : 'accessing' } StReturnValueCommand class >> defaultName [ ^ 'Return' ] -{ #category : #initialization } +{ #category : 'initialization' } StReturnValueCommand class >> defaultShortcut [ ^ nil ] -{ #category : #accessing } +{ #category : 'accessing' } StReturnValueCommand >> appliesTo: aDebugger [ "I can always return from a context, for ex. if I'm stuck because of a DNU. Except from dead contexts" ^ aDebugger canExecuteReturnCommand ] -{ #category : #actions } +{ #category : 'actions' } StReturnValueCommand >> execute [ self debugger returnEnteredValue ] diff --git a/src/NewTools-Debugger-Commands/StRunToSelectionCommand.class.st b/src/NewTools-Debugger-Commands/StRunToSelectionCommand.class.st index bad8de462..b007e055f 100644 --- a/src/NewTools-Debugger-Commands/StRunToSelectionCommand.class.st +++ b/src/NewTools-Debugger-Commands/StRunToSelectionCommand.class.st @@ -2,34 +2,35 @@ Request the debugger to run the execution up to the cursor selection " Class { - #name : #StRunToSelectionCommand, - #superclass : #StDebuggerCommand, - #category : #'NewTools-Debugger-Commands' + #name : 'StRunToSelectionCommand', + #superclass : 'StDebuggerCommand', + #category : 'NewTools-Debugger-Commands', + #package : 'NewTools-Debugger-Commands' } -{ #category : #default } +{ #category : 'default' } StRunToSelectionCommand class >> defaultDescription [ ^ 'Execute methods up to the text cursor position and return debugger control.' ] -{ #category : #initialization } +{ #category : 'initialization' } StRunToSelectionCommand class >> defaultIconName [ ^ #debuggerRunToSelection ] -{ #category : #default } +{ #category : 'default' } StRunToSelectionCommand class >> defaultName [ ^ 'Run to' ] -{ #category : #initialization } +{ #category : 'initialization' } StRunToSelectionCommand class >> defaultShortcut [ ^ nil ] -{ #category : #hooks } +{ #category : 'hooks' } StRunToSelectionCommand >> execute [ self debugger runToSelection ] diff --git a/src/NewTools-Debugger-Commands/StShowFullStackCommand.class.st b/src/NewTools-Debugger-Commands/StShowFullStackCommand.class.st deleted file mode 100644 index b5af737ee..000000000 --- a/src/NewTools-Debugger-Commands/StShowFullStackCommand.class.st +++ /dev/null @@ -1,39 +0,0 @@ -" -Request the debugger to show all the stack in its stack pane -" -Class { - #name : #StShowFullStackCommand, - #superclass : #StDebuggerCommand, - #category : #'NewTools-Debugger-Commands' -} - -{ #category : #default } -StShowFullStackCommand class >> defaultDescription [ - ^ 'Shows the full stack.' -] - -{ #category : #initialization } -StShowFullStackCommand class >> defaultIconName [ - ^ #glamorousMore -] - -{ #category : #default } -StShowFullStackCommand class >> defaultName [ - - ^ 'Stack' -] - -{ #category : #initialization } -StShowFullStackCommand class >> defaultShortcut [ - ^ nil -] - -{ #category : #testing } -StShowFullStackCommand >> appliesTo: aDebugger [ - ^ true -] - -{ #category : #hooks } -StShowFullStackCommand >> execute [ - self debugger showFullStack -] diff --git a/src/NewTools-Debugger-Commands/StStepIntoCommand.class.st b/src/NewTools-Debugger-Commands/StStepIntoCommand.class.st index b98d372f9..6202be8d2 100644 --- a/src/NewTools-Debugger-Commands/StStepIntoCommand.class.st +++ b/src/NewTools-Debugger-Commands/StStepIntoCommand.class.st @@ -2,35 +2,36 @@ Requests the debugger to step into the next expression evaluation " Class { - #name : #StStepIntoCommand, - #superclass : #StDebuggerCommand, - #category : #'NewTools-Debugger-Commands' + #name : 'StStepIntoCommand', + #superclass : 'StDebuggerCommand', + #category : 'NewTools-Debugger-Commands', + #package : 'NewTools-Debugger-Commands' } -{ #category : #default } +{ #category : 'default' } StStepIntoCommand class >> defaultDescription [ ^ 'Step in the highlighted message, i.e. follow the sent message, taking debugger control in the method invoked.' ] -{ #category : #initialization } +{ #category : 'initialization' } StStepIntoCommand class >> defaultIconName [ ^ #debuggerStepInto ] -{ #category : #default } +{ #category : 'default' } StStepIntoCommand class >> defaultName [ ^ 'Into' ] -{ #category : #initialization } +{ #category : 'initialization' } StStepIntoCommand class >> defaultShortcut [ ^ PharoShortcuts current stepIntoShortcut ] -{ #category : #hooks } +{ #category : 'hooks' } StStepIntoCommand >> execute [ self debugger stepInto ] diff --git a/src/NewTools-Debugger-Commands/StStepOverCommand.class.st b/src/NewTools-Debugger-Commands/StStepOverCommand.class.st index 38204d061..e750cadba 100644 --- a/src/NewTools-Debugger-Commands/StStepOverCommand.class.st +++ b/src/NewTools-Debugger-Commands/StStepOverCommand.class.st @@ -2,35 +2,36 @@ Requests the debugger to step over the next expression evaluation " Class { - #name : #StStepOverCommand, - #superclass : #StDebuggerCommand, - #category : #'NewTools-Debugger-Commands' + #name : 'StStepOverCommand', + #superclass : 'StDebuggerCommand', + #category : 'NewTools-Debugger-Commands', + #package : 'NewTools-Debugger-Commands' } -{ #category : #accessing } +{ #category : 'accessing' } StStepOverCommand class >> defaultDescription [ ^'Step over the highlighted message, i.e. do not follow the sent message, taking debugger control after the method invoked returns.' ] -{ #category : #initialization } +{ #category : 'initialization' } StStepOverCommand class >> defaultIconName [ ^ #debuggerStepOver ] -{ #category : #accessing } +{ #category : 'accessing' } StStepOverCommand class >> defaultName [ ^ 'Over' ] -{ #category : #initialization } +{ #category : 'initialization' } StStepOverCommand class >> defaultShortcut [ ^ PharoShortcuts current stepOverShortcut ] -{ #category : #hooks } +{ #category : 'hooks' } StStepOverCommand >> execute [ self debugger stepOver ] diff --git a/src/NewTools-Debugger-Commands/StStepThroughCommand.class.st b/src/NewTools-Debugger-Commands/StStepThroughCommand.class.st index ed1a1a082..d0f255230 100644 --- a/src/NewTools-Debugger-Commands/StStepThroughCommand.class.st +++ b/src/NewTools-Debugger-Commands/StStepThroughCommand.class.st @@ -2,35 +2,36 @@ Requests the debugger to step over the next expression evaluation " Class { - #name : #StStepThroughCommand, - #superclass : #StDebuggerCommand, - #category : #'NewTools-Debugger-Commands' + #name : 'StStepThroughCommand', + #superclass : 'StDebuggerCommand', + #category : 'NewTools-Debugger-Commands', + #package : 'NewTools-Debugger-Commands' } -{ #category : #default } +{ #category : 'default' } StStepThroughCommand class >> defaultDescription [ ^ 'Step over the highlighted message, i.e. do not follow the sent message, taking debugger control after the method invoked returns or whenever execution should return inside a block used as an argument before that.' ] -{ #category : #initialization } +{ #category : 'initialization' } StStepThroughCommand class >> defaultIconName [ ^ #debuggerStepThrough ] -{ #category : #default } +{ #category : 'default' } StStepThroughCommand class >> defaultName [ ^ 'Through' ] -{ #category : #initialization } +{ #category : 'initialization' } StStepThroughCommand class >> defaultShortcut [ ^ PharoShortcuts current stepThroughShortcut ] -{ #category : #hooks } +{ #category : 'hooks' } StStepThroughCommand >> execute [ self debugger stepThrough ] diff --git a/src/NewTools-Debugger-Commands/StWhereIsCommand.class.st b/src/NewTools-Debugger-Commands/StWhereIsCommand.class.st index 4d7ec8eb0..789dfaca9 100644 --- a/src/NewTools-Debugger-Commands/StWhereIsCommand.class.st +++ b/src/NewTools-Debugger-Commands/StWhereIsCommand.class.st @@ -2,39 +2,40 @@ Requests the debugger to reselect in its code pane the next expression to be executed " Class { - #name : #StWhereIsCommand, - #superclass : #StDebuggerCommand, - #category : #'NewTools-Debugger-Commands' + #name : 'StWhereIsCommand', + #superclass : 'StDebuggerCommand', + #category : 'NewTools-Debugger-Commands', + #package : 'NewTools-Debugger-Commands' } -{ #category : #default } +{ #category : 'default' } StWhereIsCommand class >> defaultDescription [ ^ 'Highligh the next method to be executed (step) by the debugger.' ] -{ #category : #initialization } +{ #category : 'initialization' } StWhereIsCommand class >> defaultIconName [ ^ #debuggerWhereIs ] -{ #category : #default } +{ #category : 'default' } StWhereIsCommand class >> defaultName [ ^ 'Where is?' ] -{ #category : #initialization } +{ #category : 'initialization' } StWhereIsCommand class >> defaultShortcut [ ^ nil ] -{ #category : #testing } +{ #category : 'testing' } StWhereIsCommand >> appliesTo: aDebugger [ ^ true ] -{ #category : #hooks } +{ #category : 'hooks' } StWhereIsCommand >> execute [ self debugger selectNextExecutedExpression ] diff --git a/src/NewTools-Debugger-Commands/package.st b/src/NewTools-Debugger-Commands/package.st index 9fe475ce8..8b4880708 100644 --- a/src/NewTools-Debugger-Commands/package.st +++ b/src/NewTools-Debugger-Commands/package.st @@ -1 +1 @@ -Package { #name : #'NewTools-Debugger-Commands' } +Package { #name : 'NewTools-Debugger-Commands' } diff --git a/src/NewTools-Debugger-Tests/ContextTest.extension.st b/src/NewTools-Debugger-Tests/ContextTest.extension.st index b1bcda8f1..50b8804c6 100644 --- a/src/NewTools-Debugger-Tests/ContextTest.extension.st +++ b/src/NewTools-Debugger-Tests/ContextTest.extension.st @@ -1,6 +1,6 @@ -Extension { #name : #ContextTest } +Extension { #name : 'ContextTest' } -{ #category : #'*NewTools-Debugger-Tests' } +{ #category : '*NewTools-Debugger-Tests' } ContextTest >> testFailedAssertionContextInSenderChain [ diff --git a/src/NewTools-Debugger-Tests/HaltInCompiledBlockPrintOnTest.class.st b/src/NewTools-Debugger-Tests/HaltInCompiledBlockPrintOnTest.class.st index af618dd74..353cbc898 100644 --- a/src/NewTools-Debugger-Tests/HaltInCompiledBlockPrintOnTest.class.st +++ b/src/NewTools-Debugger-Tests/HaltInCompiledBlockPrintOnTest.class.st @@ -1,13 +1,15 @@ Class { - #name : #HaltInCompiledBlockPrintOnTest, - #superclass : #TestCase, + #name : 'HaltInCompiledBlockPrintOnTest', + #superclass : 'TestCase', #instVars : [ 'oldCode' ], - #category : #'NewTools-Debugger-Tests-Model' + #category : 'NewTools-Debugger-Tests-Model', + #package : 'NewTools-Debugger-Tests', + #tag : 'Model' } -{ #category : #running } +{ #category : 'running' } HaltInCompiledBlockPrintOnTest >> setUp [ super setUp. @@ -17,13 +19,13 @@ HaltInCompiledBlockPrintOnTest >> setUp [ '. ] -{ #category : #running } +{ #category : 'running' } HaltInCompiledBlockPrintOnTest >> tearDown [ oldCode ifNotNil: [BlockClosure compileSilently: oldCode]. super tearDown ] -{ #category : #running } +{ #category : 'running' } HaltInCompiledBlockPrintOnTest >> testExecutingHaltingPrintOnABlockOpensASingleDebugger [ | ourException dbg debugSession sem myProcess | diff --git a/src/NewTools-Debugger-Tests/ObjectWithPrintingRaisingHalt.class.st b/src/NewTools-Debugger-Tests/ObjectWithPrintingRaisingHalt.class.st index c423ce1f6..2270e85ec 100644 --- a/src/NewTools-Debugger-Tests/ObjectWithPrintingRaisingHalt.class.st +++ b/src/NewTools-Debugger-Tests/ObjectWithPrintingRaisingHalt.class.st @@ -1,10 +1,12 @@ Class { - #name : #ObjectWithPrintingRaisingHalt, - #superclass : #Object, - #category : #'NewTools-Debugger-Tests-Utils' + #name : 'ObjectWithPrintingRaisingHalt', + #superclass : 'Object', + #category : 'NewTools-Debugger-Tests-Utils', + #package : 'NewTools-Debugger-Tests', + #tag : 'Utils' } -{ #category : #printing } +{ #category : 'printing' } ObjectWithPrintingRaisingHalt >> printOn: aStream [ diff --git a/src/NewTools-Debugger-Tests/ObjectWithPrintingRaisingHaltTest.class.st b/src/NewTools-Debugger-Tests/ObjectWithPrintingRaisingHaltTest.class.st index 979f84462..ef59882cc 100644 --- a/src/NewTools-Debugger-Tests/ObjectWithPrintingRaisingHaltTest.class.st +++ b/src/NewTools-Debugger-Tests/ObjectWithPrintingRaisingHaltTest.class.st @@ -1,10 +1,12 @@ Class { - #name : #ObjectWithPrintingRaisingHaltTest, - #superclass : #TestCase, - #category : #'NewTools-Debugger-Tests-Model' + #name : 'ObjectWithPrintingRaisingHaltTest', + #superclass : 'TestCase', + #category : 'NewTools-Debugger-Tests-Model', + #package : 'NewTools-Debugger-Tests', + #tag : 'Model' } -{ #category : #tests } +{ #category : 'tests' } ObjectWithPrintingRaisingHaltTest >> testInspectingObjectWithPrintOnWithHaltOpenInspector [ "Make sure that inspecting an object with a broken printOn: does not produce an endless loop. " diff --git a/src/NewTools-Debugger-Tests/StDebugContextForTests.class.st b/src/NewTools-Debugger-Tests/StDebugContextForTests.class.st index 24456e027..d2285fa79 100644 --- a/src/NewTools-Debugger-Tests/StDebugContextForTests.class.st +++ b/src/NewTools-Debugger-Tests/StDebugContextForTests.class.st @@ -4,25 +4,27 @@ By default, I act as if a user validated the requested popup. This is for tests. " Class { - #name : #StDebugContextForTests, - #superclass : #DebugContext, - #category : #'NewTools-Debugger-Tests-Utils' + #name : 'StDebugContextForTests', + #superclass : 'DebugContext', + #category : 'NewTools-Debugger-Tests-Utils', + #package : 'NewTools-Debugger-Tests', + #tag : 'Utils' } -{ #category : #private } +{ #category : 'private' } StDebugContextForTests >> browseMethod: aMethod [ "Do not open a browser, we are in a test" ] -{ #category : #'ui requests' } +{ #category : 'ui requests' } StDebugContextForTests >> confirm: aString [ "Voluntarily returns true to simulate popup validation" ^ true ] -{ #category : #'ui requests' } +{ #category : 'ui requests' } StDebugContextForTests >> confirm: message trueChoice: trueChoice falseChoice: falseChoice [ "Yes?" ^ true diff --git a/src/NewTools-Debugger-Tests/StDebugger.extension.st b/src/NewTools-Debugger-Tests/StDebugger.extension.st index 5d592da75..ff52c8b4a 100644 --- a/src/NewTools-Debugger-Tests/StDebugger.extension.st +++ b/src/NewTools-Debugger-Tests/StDebugger.extension.st @@ -1,18 +1,18 @@ -Extension { #name : #StDebugger } +Extension { #name : 'StDebugger' } -{ #category : #'*NewTools-Debugger-Tests' } +{ #category : '*NewTools-Debugger-Tests' } StDebugger >> inspector [ ^ inspector ] -{ #category : #'*NewTools-Debugger-Tests' } +{ #category : '*NewTools-Debugger-Tests' } StDebugger >> stackAndCodeContainer [ ^ stackAndCodeContainer ] -{ #category : #'*NewTools-Debugger-Tests' } +{ #category : '*NewTools-Debugger-Tests' } StDebugger >> toolbarCommandGroup [ ^ toolbarCommandGroup diff --git a/src/NewTools-Debugger-Tests/StDebuggerActionModel.extension.st b/src/NewTools-Debugger-Tests/StDebuggerActionModel.extension.st index 28562fc79..1ec0e4a77 100644 --- a/src/NewTools-Debugger-Tests/StDebuggerActionModel.extension.st +++ b/src/NewTools-Debugger-Tests/StDebuggerActionModel.extension.st @@ -1,6 +1,6 @@ -Extension { #name : #StDebuggerActionModel } +Extension { #name : 'StDebuggerActionModel' } -{ #category : #'*NewTools-Debugger-Tests' } +{ #category : '*NewTools-Debugger-Tests' } StDebuggerActionModel >> hasSubscriber: aDebugger [ ^ self announcer hasSubscriber: aDebugger diff --git a/src/NewTools-Debugger-Tests/StDebuggerActionModelAnnouncementTest.class.st b/src/NewTools-Debugger-Tests/StDebuggerActionModelAnnouncementTest.class.st index 6393ff4eb..bf62e6b2a 100644 --- a/src/NewTools-Debugger-Tests/StDebuggerActionModelAnnouncementTest.class.st +++ b/src/NewTools-Debugger-Tests/StDebuggerActionModelAnnouncementTest.class.st @@ -1,20 +1,22 @@ Class { - #name : #StDebuggerActionModelAnnouncementTest, - #superclass : #TestCase, + #name : 'StDebuggerActionModelAnnouncementTest', + #superclass : 'TestCase', #instVars : [ 'debugActionModel' ], - #category : #'NewTools-Debugger-Tests-Model' + #category : 'NewTools-Debugger-Tests-Model', + #package : 'NewTools-Debugger-Tests', + #tag : 'Model' } -{ #category : #running } +{ #category : 'running' } StDebuggerActionModelAnnouncementTest >> setUp [ super setUp. debugActionModel := StMockDebuggerActionModel new ] -{ #category : #tests } +{ #category : 'tests' } StDebuggerActionModelAnnouncementTest >> testDebuggerActionModel [ | actionModelAnnouncement | diff --git a/src/NewTools-Debugger-Tests/StDebuggerActionModelTest.class.st b/src/NewTools-Debugger-Tests/StDebuggerActionModelTest.class.st index 86c81fb27..5e05ecd41 100644 --- a/src/NewTools-Debugger-Tests/StDebuggerActionModelTest.class.st +++ b/src/NewTools-Debugger-Tests/StDebuggerActionModelTest.class.st @@ -1,6 +1,6 @@ Class { - #name : #StDebuggerActionModelTest, - #superclass : #TestCase, + #name : 'StDebuggerActionModelTest', + #superclass : 'TestCase', #instVars : [ 'session', 'debugActionModel', @@ -10,21 +10,23 @@ Class { 'methodWithBlockContextOriginalSource', 'setResultOriginalSourceCode' ], - #category : #'NewTools-Debugger-Tests-Model' + #category : 'NewTools-Debugger-Tests-Model', + #package : 'NewTools-Debugger-Tests', + #tag : 'Model' } -{ #category : #benchmarking } +{ #category : 'benchmarking' } StDebuggerActionModelTest class >> benchFilterStack [