author | Claus Gittinger <cg@exept.de> |
Fri, 12 Jan 2007 21:58:09 +0100 | |
changeset 10322 | b1c70a1fc8d7 |
parent 10017 | e4fd5510e56b |
child 10374 | 71de61c77770 |
permissions | -rw-r--r-- |
1 | 1 |
" |
5 | 2 |
COPYRIGHT (c) 1988 by Claus Gittinger |
159 | 3 |
All Rights Reserved |
1 | 4 |
|
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
5942
e3431a2c33f1
avoid statements after return
Claus Gittinger <cg@exept.de>
parents:
5921
diff
changeset
|
12 |
"{ Package: 'stx:libbasic' }" |
e3431a2c33f1
avoid statements after return
Claus Gittinger <cg@exept.de>
parents:
5921
diff
changeset
|
13 |
|
720 | 14 |
Object subclass:#MiniDebugger |
5802
93748287026d
better Mini- debugging tools (+/- context in debugger); interpreter in inspector.
Claus Gittinger <cg@exept.de>
parents:
5054
diff
changeset
|
15 |
instanceVariableNames:'tracing stepping traceBlock command commandArg commandCount |
5942
e3431a2c33f1
avoid statements after return
Claus Gittinger <cg@exept.de>
parents:
5921
diff
changeset
|
16 |
enteringContext dot nesting' |
976 | 17 |
classVariableNames:'TheOneAndOnlyDebugger' |
18 |
poolDictionaries:'' |
|
19 |
category:'System-Debugging-Support' |
|
1 | 20 |
! |
21 |
||
618 | 22 |
!MiniDebugger class methodsFor:'documentation'! |
89 | 23 |
|
24 |
copyright |
|
25 |
" |
|
26 |
COPYRIGHT (c) 1988 by Claus Gittinger |
|
159 | 27 |
All Rights Reserved |
1 | 28 |
|
89 | 29 |
This software is furnished under a license and may be used |
30 |
only in accordance with the terms of that license and with the |
|
31 |
inclusion of the above copyright notice. This software may not |
|
32 |
be provided or otherwise made available to, or used by, any |
|
33 |
other person. No title to or ownership of the software is |
|
34 |
hereby transferred. |
|
35 |
" |
|
36 |
! |
|
1 | 37 |
|
89 | 38 |
documentation |
39 |
" |
|
40 |
a primitive (non graphical) debugger for use on systems without |
|
41 |
graphics or when the real debugger dies (i.e. an error occurs in |
|
42 |
the graphical debugger). |
|
93 | 43 |
Also, if an interrupt occurs within the debuger, this one is called |
44 |
for. |
|
1297 | 45 |
|
46 |
[author:] |
|
8840 | 47 |
Claus Gittinger |
89 | 48 |
" |
49 |
! ! |
|
1 | 50 |
|
618 | 51 |
!MiniDebugger class methodsFor:'instance creation'! |
52 |
||
4572 | 53 |
enter:aContext withMessage:aString mayProceed:mayProceed |
3814
1227e4690753
allow aborting other threads
Claus Gittinger <cg@exept.de>
parents:
3769
diff
changeset
|
54 |
"enter a miniDebugger" |
1227e4690753
allow aborting other threads
Claus Gittinger <cg@exept.de>
parents:
3769
diff
changeset
|
55 |
|
7839
d6d9fac8b4db
skip recursive contexts when shwing backtrace
Claus Gittinger <cg@exept.de>
parents:
7706
diff
changeset
|
56 |
|active con sender| |
618 | 57 |
|
58 |
StepInterruptPending := nil. |
|
59 |
||
7093
60bad14d38fc
Convert Object>>errorSignal -> Error
Stefan Vogel <sv@exept.de>
parents:
6938
diff
changeset
|
60 |
Error handle:[:ex | |
8840 | 61 |
ex return |
2661
fea131f9f062
care for recursive errors in MiniDebugger
Claus Gittinger <cg@exept.de>
parents:
2118
diff
changeset
|
62 |
] do:[ |
8840 | 63 |
thisContext isRecursive ifTrue:[ |
64 |
"/ 'recursive error in debugger ignored' errorPrintCR. |
|
65 |
^ self |
|
66 |
]. |
|
67 |
aString printCR. |
|
68 |
Processor notNil ifTrue:[ |
|
69 |
active := Processor activeProcess. |
|
70 |
'process: id=' print. active id print. |
|
71 |
' name=' print. active name printCR. |
|
4960 | 72 |
|
8840 | 73 |
'context: ' print. aContext printString printCR. |
74 |
(con := aContext) notNil ifTrue:[ |
|
75 |
con := con sender. |
|
76 |
' ......: ' print. con printString printCR. |
|
77 |
[con notNil] whileTrue:[ |
|
78 |
sender := con sender. |
|
79 |
(sender notNil and:[sender selector == con selector]) ifTrue:[ |
|
80 |
' ......: ' print. sender printString printCR. |
|
81 |
' ......: [** intermediate recursive contexts skipped **]' printCR. |
|
82 |
[sender notNil |
|
83 |
and:[sender selector == con selector |
|
84 |
and:[sender method == con method]]] whileTrue:[ |
|
85 |
con := sender. |
|
86 |
sender := con sender. |
|
87 |
]. |
|
88 |
]. |
|
89 |
con := sender. |
|
90 |
' ......: ' print. con printString printCR. |
|
91 |
] |
|
92 |
] |
|
93 |
]. |
|
618 | 94 |
]. |
4209
7c1b4df9e555
care for noConsole present (WIN32 only)
Claus Gittinger <cg@exept.de>
parents:
4003
diff
changeset
|
95 |
|
7c1b4df9e555
care for noConsole present (WIN32 only)
Claus Gittinger <cg@exept.de>
parents:
4003
diff
changeset
|
96 |
OperatingSystem hasConsole ifFalse:[ |
8840 | 97 |
Error handle:[:ex | |
98 |
ex return |
|
99 |
] do:[ |
|
100 |
self warn:('Unexpected error:\' , aString , '\\No MiniDebugger functionality available') withCRs . |
|
101 |
]. |
|
4209
7c1b4df9e555
care for noConsole present (WIN32 only)
Claus Gittinger <cg@exept.de>
parents:
4003
diff
changeset
|
102 |
|
8840 | 103 |
Error handle:[:ex | |
104 |
'cannot raise Abort - exiting ...' errorPrintCR. |
|
105 |
Smalltalk exit. |
|
106 |
] do:[ |
|
107 |
AbortOperationRequest raise. |
|
108 |
] |
|
4209
7c1b4df9e555
care for noConsole present (WIN32 only)
Claus Gittinger <cg@exept.de>
parents:
4003
diff
changeset
|
109 |
] ifTrue:[ |
8840 | 110 |
self new enter:aContext mayProceed:mayProceed. |
4209
7c1b4df9e555
care for noConsole present (WIN32 only)
Claus Gittinger <cg@exept.de>
parents:
4003
diff
changeset
|
111 |
]. |
4961
5419c9a32316
abort after unproceedable error
Stefan Vogel <sv@exept.de>
parents:
4960
diff
changeset
|
112 |
mayProceed ifFalse:[ |
8840 | 113 |
AbortOperationRequest raise |
4961
5419c9a32316
abort after unproceedable error
Stefan Vogel <sv@exept.de>
parents:
4960
diff
changeset
|
114 |
]. |
618 | 115 |
^ nil |
1424 | 116 |
|
4209
7c1b4df9e555
care for noConsole present (WIN32 only)
Claus Gittinger <cg@exept.de>
parents:
4003
diff
changeset
|
117 |
"Modified: / 19.5.1999 / 18:14:33 / cg" |
618 | 118 |
! |
1 | 119 |
|
4572 | 120 |
enterWithMessage:aString mayProceed:mayProceed |
121 |
"enter a miniDebugger" |
|
122 |
||
8389
5e6516704e5d
#enter:... returns the value for proceed
Stefan Vogel <sv@exept.de>
parents:
7839
diff
changeset
|
123 |
^ self enter:thisContext sender withMessage:aString mayProceed:mayProceed |
4572 | 124 |
|
125 |
"Modified: / 19.5.1999 / 18:14:33 / cg" |
|
126 |
! |
|
127 |
||
1 | 128 |
new |
3814
1227e4690753
allow aborting other threads
Claus Gittinger <cg@exept.de>
parents:
3769
diff
changeset
|
129 |
"redefined to make certain that there is only one miniDebugger |
1227e4690753
allow aborting other threads
Claus Gittinger <cg@exept.de>
parents:
3769
diff
changeset
|
130 |
in the system" |
1227e4690753
allow aborting other threads
Claus Gittinger <cg@exept.de>
parents:
3769
diff
changeset
|
131 |
|
5802
93748287026d
better Mini- debugging tools (+/- context in debugger); interpreter in inspector.
Claus Gittinger <cg@exept.de>
parents:
5054
diff
changeset
|
132 |
^ self basicNew initialize. |
93748287026d
better Mini- debugging tools (+/- context in debugger); interpreter in inspector.
Claus Gittinger <cg@exept.de>
parents:
5054
diff
changeset
|
133 |
|
5942
e3431a2c33f1
avoid statements after return
Claus Gittinger <cg@exept.de>
parents:
5921
diff
changeset
|
134 |
"/ TheOneAndOnlyDebugger isNil ifTrue:[ |
e3431a2c33f1
avoid statements after return
Claus Gittinger <cg@exept.de>
parents:
5921
diff
changeset
|
135 |
"/ TheOneAndOnlyDebugger := self basicNew initialize |
e3431a2c33f1
avoid statements after return
Claus Gittinger <cg@exept.de>
parents:
5921
diff
changeset
|
136 |
"/ ]. |
e3431a2c33f1
avoid statements after return
Claus Gittinger <cg@exept.de>
parents:
5921
diff
changeset
|
137 |
"/ ^ TheOneAndOnlyDebugger |
1424 | 138 |
|
3700 | 139 |
" |
140 |
TheOneAndOnlyDebugger := nil |
|
141 |
" |
|
142 |
||
3701 | 143 |
"Modified: / 31.7.1998 / 17:08:07 / cg" |
1 | 144 |
! |
145 |
||
4966 | 146 |
openOn:aProcess |
147 |
"enter a miniDebugger" |
|
148 |
||
8840 | 149 |
^ self |
150 |
enter:thisContext sender |
|
151 |
withMessage:'MiniDebugger [info]: Attention - process debugging not possible.' |
|
152 |
mayProceed:true |
|
4966 | 153 |
|
154 |
"Modified: / 19.5.1999 / 18:14:33 / cg" |
|
155 |
! |
|
156 |
||
1 | 157 |
singleStep:aBlock |
158 |
|aDebugger| |
|
159 |
||
160 |
aDebugger := self new stepping. |
|
241 | 161 |
ObjectMemory stepInterruptHandler:aDebugger. |
2 | 162 |
ObjectMemory flushInlineCaches. |
241 | 163 |
StepInterruptPending := 1. |
164 |
InterruptPending := 1. |
|
1 | 165 |
aBlock value. |
2 | 166 |
StepInterruptPending := nil. |
167 |
ObjectMemory stepInterruptHandler:nil |
|
1 | 168 |
! |
169 |
||
170 |
trace:aBlock |
|
1424 | 171 |
self trace:aBlock with:[:where | where printCR] |
172 |
||
173 |
"Modified: 20.5.1996 / 10:27:37 / cg" |
|
1 | 174 |
! |
175 |
||
176 |
trace:aBlock on:aStream |
|
177 |
self trace:aBlock with:[:where | where printString printOn:aStream. |
|
159 | 178 |
aStream cr] |
1 | 179 |
! |
180 |
||
181 |
trace:aBlock with:aTraceBlock |
|
182 |
|aDebugger| |
|
183 |
||
184 |
aDebugger := self new tracingWith:aTraceBlock. |
|
241 | 185 |
ObjectMemory stepInterruptHandler:aDebugger. |
1 | 186 |
ObjectMemory flushInlineCaches. |
241 | 187 |
StepInterruptPending := 1. |
188 |
InterruptPending := 1. |
|
1 | 189 |
aBlock value. |
2 | 190 |
ObjectMemory stepInterruptHandler:nil. |
1 | 191 |
StepInterruptPending := nil. |
192 |
^ nil |
|
193 |
! ! |
|
194 |
||
618 | 195 |
!MiniDebugger methodsFor:'initialization'! |
1 | 196 |
|
197 |
initialize |
|
198 |
traceBlock := nil. |
|
199 |
tracing := false. |
|
200 |
stepping := false |
|
201 |
! ! |
|
202 |
||
618 | 203 |
!MiniDebugger methodsFor:'interrupt handling'! |
1 | 204 |
|
5802
93748287026d
better Mini- debugging tools (+/- context in debugger); interpreter in inspector.
Claus Gittinger <cg@exept.de>
parents:
5054
diff
changeset
|
205 |
enter:aContext mayProceed:mayProceed |
93748287026d
better Mini- debugging tools (+/- context in debugger); interpreter in inspector.
Claus Gittinger <cg@exept.de>
parents:
5054
diff
changeset
|
206 |
|c leaveCmd stillHere yesNo| |
93748287026d
better Mini- debugging tools (+/- context in debugger); interpreter in inspector.
Claus Gittinger <cg@exept.de>
parents:
5054
diff
changeset
|
207 |
|
93748287026d
better Mini- debugging tools (+/- context in debugger); interpreter in inspector.
Claus Gittinger <cg@exept.de>
parents:
5054
diff
changeset
|
208 |
enteringContext := dot := aContext. |
93748287026d
better Mini- debugging tools (+/- context in debugger); interpreter in inspector.
Claus Gittinger <cg@exept.de>
parents:
5054
diff
changeset
|
209 |
nesting := 0. |
93748287026d
better Mini- debugging tools (+/- context in debugger); interpreter in inspector.
Claus Gittinger <cg@exept.de>
parents:
5054
diff
changeset
|
210 |
c := aContext. |
93748287026d
better Mini- debugging tools (+/- context in debugger); interpreter in inspector.
Claus Gittinger <cg@exept.de>
parents:
5054
diff
changeset
|
211 |
[c notNil] whileTrue:[ |
8840 | 212 |
c selector == #enter:mayProceed: ifTrue:[ |
213 |
nesting := nesting + 1. |
|
214 |
]. |
|
215 |
c := c sender. |
|
5802
93748287026d
better Mini- debugging tools (+/- context in debugger); interpreter in inspector.
Claus Gittinger <cg@exept.de>
parents:
5054
diff
changeset
|
216 |
]. |
74 | 217 |
|
218 |
stillHere := true. |
|
219 |
[stillHere] whileTrue:[ |
|
8840 | 220 |
AbortOperationRequest handle:[:ex | |
221 |
'** Abort cought - back in previous debugLevel' printCR. |
|
222 |
] do:[ |
|
223 |
Error handle:[:ex | |
|
224 |
'Error while executing command: ' print. |
|
225 |
ex description printCR. |
|
226 |
yesNo := self getCommand:'- (i)gnore / (p)roceed / (d)ebug ? '. |
|
227 |
yesNo == $d ifTrue:[ |
|
228 |
ex reject |
|
229 |
]. |
|
230 |
yesNo == $p ifTrue:[ |
|
231 |
ex proceed |
|
232 |
]. |
|
233 |
] do:[ |
|
8721 | 234 |
[ |
8840 | 235 |
leaveCmd := self commandLoop. |
8721 | 236 |
] valueUnpreemptively. |
8840 | 237 |
]. |
238 |
]. |
|
1 | 239 |
|
8840 | 240 |
(leaveCmd == $s) ifTrue: [ |
241 |
self stepping. |
|
242 |
ObjectMemory flushInlineCaches. |
|
243 |
ObjectMemory stepInterruptHandler:self. |
|
244 |
stillHere := false. |
|
245 |
StepInterruptPending := 1. |
|
246 |
InterruptPending := 1 |
|
247 |
]. |
|
248 |
(leaveCmd == $t) ifTrue: [ |
|
249 |
traceBlock := [:where | where fullPrint]. |
|
250 |
ObjectMemory flushInlineCaches. |
|
251 |
ObjectMemory stepInterruptHandler:self. |
|
252 |
stillHere := false. |
|
253 |
StepInterruptPending := 1. |
|
254 |
InterruptPending := 1 |
|
255 |
]. |
|
256 |
(leaveCmd == $c) ifTrue: [ |
|
257 |
traceBlock := nil. |
|
258 |
stillHere := false. |
|
259 |
stepping := false. |
|
260 |
tracing := false. |
|
261 |
StepInterruptPending := nil. |
|
262 |
InterruptPending := nil |
|
263 |
]. |
|
264 |
(leaveCmd == $a) ifTrue: [ |
|
265 |
"abort" |
|
266 |
stepping := false. |
|
267 |
tracing := false. |
|
268 |
StepInterruptPending := nil. |
|
269 |
InterruptPending := nil. |
|
270 |
self doAbort. |
|
271 |
stillHere := true. |
|
272 |
"failed abort" |
|
273 |
]. |
|
1 | 274 |
]. |
5802
93748287026d
better Mini- debugging tools (+/- context in debugger); interpreter in inspector.
Claus Gittinger <cg@exept.de>
parents:
5054
diff
changeset
|
275 |
enteringContext := dot := nil. |
1 | 276 |
^ nil |
3769 | 277 |
|
278 |
"Modified: / 18.8.1998 / 18:10:29 / cg" |
|
618 | 279 |
! |
280 |
||
281 |
stepInterrupt |
|
282 |
|where| |
|
283 |
||
284 |
where := thisContext. "where is stepInterrupt context" |
|
285 |
where notNil ifTrue:[ |
|
8840 | 286 |
where := where sender "where is now interrupted methods context" |
618 | 287 |
]. |
288 |
stepping ifTrue:[ |
|
8840 | 289 |
where notNil ifTrue:[ |
290 |
where fullPrint |
|
291 |
] ifFalse:[ |
|
292 |
'stepInterrupt: no context' errorPrintCR |
|
293 |
]. |
|
294 |
self enter:where mayProceed:true |
|
618 | 295 |
] ifFalse:[ |
8840 | 296 |
where notNil ifTrue:[ |
297 |
traceBlock notNil ifTrue:[ |
|
298 |
traceBlock value:where |
|
299 |
] |
|
300 |
] ifFalse:[ |
|
301 |
'traceInterrupt: no context' errorPrintCR |
|
302 |
]. |
|
303 |
ObjectMemory flushInlineCaches. |
|
304 |
StepInterruptPending := 1. |
|
305 |
InterruptPending := 1 |
|
618 | 306 |
] |
1424 | 307 |
|
308 |
"Modified: 20.5.1996 / 10:23:11 / cg" |
|
1 | 309 |
! ! |
310 |
||
618 | 311 |
!MiniDebugger methodsFor:'private'! |
74 | 312 |
|
618 | 313 |
findContext:aSelector |
314 |
|con| |
|
74 | 315 |
|
618 | 316 |
con := thisContext sender. |
317 |
[con notNil] whileTrue:[ |
|
318 |
(con isBlockContext not and:[con selector == aSelector]) ifTrue:[ |
|
319 |
"got it" |
|
320 |
^ con |
|
321 |
]. |
|
322 |
con := con sender |
|
74 | 323 |
]. |
618 | 324 |
^ nil |
74 | 325 |
! |
326 |
||
7701 | 327 |
garbageCollectCommand:id |
328 |
id == 3 ifTrue:[ |
|
8840 | 329 |
ObjectMemory reclaimSymbols. |
330 |
ObjectMemory compressOldSpace. |
|
7701 | 331 |
] ifFalse:[ |
8840 | 332 |
id == 2 ifTrue:[ |
333 |
ObjectMemory reclaimSymbols. |
|
334 |
] ifFalse:[ |
|
335 |
ObjectMemory garbageCollect. |
|
336 |
] |
|
7701 | 337 |
] |
338 |
! |
|
339 |
||
618 | 340 |
getContext |
341 |
|backtrace| |
|
342 |
backtrace := thisContext. |
|
343 |
(backtrace notNil) ifTrue: [ |
|
344 |
"remove Context getContext frame" |
|
345 |
backtrace := backtrace sender. |
|
346 |
"remove Debugger showContext frame" |
|
347 |
backtrace := backtrace sender. |
|
348 |
"remove Debugger commandLoop frame" |
|
349 |
backtrace := backtrace sender. |
|
350 |
"remove Debugger enter frame" |
|
351 |
backtrace := backtrace sender |
|
352 |
]. |
|
353 |
^ backtrace |
|
354 |
! |
|
74 | 355 |
|
5942
e3431a2c33f1
avoid statements after return
Claus Gittinger <cg@exept.de>
parents:
5921
diff
changeset
|
356 |
moveDotDown |
e3431a2c33f1
avoid statements after return
Claus Gittinger <cg@exept.de>
parents:
5921
diff
changeset
|
357 |
"/ sigh - must search |
e3431a2c33f1
avoid statements after return
Claus Gittinger <cg@exept.de>
parents:
5921
diff
changeset
|
358 |
|c| |
e3431a2c33f1
avoid statements after return
Claus Gittinger <cg@exept.de>
parents:
5921
diff
changeset
|
359 |
|
e3431a2c33f1
avoid statements after return
Claus Gittinger <cg@exept.de>
parents:
5921
diff
changeset
|
360 |
c := enteringContext. |
e3431a2c33f1
avoid statements after return
Claus Gittinger <cg@exept.de>
parents:
5921
diff
changeset
|
361 |
[ c notNil and:[ c sender ~~ dot ] ] whileTrue:[ |
e3431a2c33f1
avoid statements after return
Claus Gittinger <cg@exept.de>
parents:
5921
diff
changeset
|
362 |
c := c sender. |
e3431a2c33f1
avoid statements after return
Claus Gittinger <cg@exept.de>
parents:
5921
diff
changeset
|
363 |
]. |
e3431a2c33f1
avoid statements after return
Claus Gittinger <cg@exept.de>
parents:
5921
diff
changeset
|
364 |
c notNil ifTrue:[ |
e3431a2c33f1
avoid statements after return
Claus Gittinger <cg@exept.de>
parents:
5921
diff
changeset
|
365 |
dot := c. |
8717 | 366 |
dot fullPrint. |
5942
e3431a2c33f1
avoid statements after return
Claus Gittinger <cg@exept.de>
parents:
5921
diff
changeset
|
367 |
] ifFalse:[ |
8840 | 368 |
'** dot is the bottom of the calling chain' printCR. |
5942
e3431a2c33f1
avoid statements after return
Claus Gittinger <cg@exept.de>
parents:
5921
diff
changeset
|
369 |
]. |
e3431a2c33f1
avoid statements after return
Claus Gittinger <cg@exept.de>
parents:
5921
diff
changeset
|
370 |
! |
e3431a2c33f1
avoid statements after return
Claus Gittinger <cg@exept.de>
parents:
5921
diff
changeset
|
371 |
|
e3431a2c33f1
avoid statements after return
Claus Gittinger <cg@exept.de>
parents:
5921
diff
changeset
|
372 |
moveDotUp |
e3431a2c33f1
avoid statements after return
Claus Gittinger <cg@exept.de>
parents:
5921
diff
changeset
|
373 |
dot sender notNil ifTrue:[ |
e3431a2c33f1
avoid statements after return
Claus Gittinger <cg@exept.de>
parents:
5921
diff
changeset
|
374 |
dot := dot sender. |
8717 | 375 |
dot fullPrint. |
5942
e3431a2c33f1
avoid statements after return
Claus Gittinger <cg@exept.de>
parents:
5921
diff
changeset
|
376 |
] ifFalse:[ |
e3431a2c33f1
avoid statements after return
Claus Gittinger <cg@exept.de>
parents:
5921
diff
changeset
|
377 |
'** dot is the top of the calling chain' printCR. |
e3431a2c33f1
avoid statements after return
Claus Gittinger <cg@exept.de>
parents:
5921
diff
changeset
|
378 |
]. |
e3431a2c33f1
avoid statements after return
Claus Gittinger <cg@exept.de>
parents:
5921
diff
changeset
|
379 |
! |
e3431a2c33f1
avoid statements after return
Claus Gittinger <cg@exept.de>
parents:
5921
diff
changeset
|
380 |
|
2772 | 381 |
printBacktraceFrom:aContext |
4003
d0f97b9cd4de
added 'S' -> stopp a process
Claus Gittinger <cg@exept.de>
parents:
3814
diff
changeset
|
382 |
|context n| |
d0f97b9cd4de
added 'S' -> stopp a process
Claus Gittinger <cg@exept.de>
parents:
3814
diff
changeset
|
383 |
|
d0f97b9cd4de
added 'S' -> stopp a process
Claus Gittinger <cg@exept.de>
parents:
3814
diff
changeset
|
384 |
aContext isNil ifTrue:[ |
8840 | 385 |
'no context' errorPrintCR. |
386 |
^ self |
|
4003
d0f97b9cd4de
added 'S' -> stopp a process
Claus Gittinger <cg@exept.de>
parents:
3814
diff
changeset
|
387 |
]. |
d0f97b9cd4de
added 'S' -> stopp a process
Claus Gittinger <cg@exept.de>
parents:
3814
diff
changeset
|
388 |
|
d0f97b9cd4de
added 'S' -> stopp a process
Claus Gittinger <cg@exept.de>
parents:
3814
diff
changeset
|
389 |
context := aContext. |
d0f97b9cd4de
added 'S' -> stopp a process
Claus Gittinger <cg@exept.de>
parents:
3814
diff
changeset
|
390 |
n := commandCount. |
d0f97b9cd4de
added 'S' -> stopp a process
Claus Gittinger <cg@exept.de>
parents:
3814
diff
changeset
|
391 |
[context notNil] whileTrue: [ |
8840 | 392 |
context fullPrint. |
393 |
context := context sender. |
|
394 |
n notNil ifTrue:[ |
|
395 |
n := n - 1. |
|
396 |
n <= 0 ifTrue:[ |
|
397 |
^ self |
|
398 |
] |
|
399 |
] |
|
2772 | 400 |
] |
401 |
! |
|
402 |
||
5942
e3431a2c33f1
avoid statements after return
Claus Gittinger <cg@exept.de>
parents:
5921
diff
changeset
|
403 |
printDot |
8717 | 404 |
dot fullPrint. |
405 |
'receiver: ' print. dot receiver printCR. |
|
406 |
'selector: ' print. dot selector printCR. |
|
407 |
'args: ' printCR. |
|
408 |
dot args keysAndValuesDo:[:idx :eachArg | |
|
8840 | 409 |
' ' print. idx print. ': ' print. eachArg printCR. |
8717 | 410 |
]. |
411 |
'vars: ' printCR. |
|
412 |
dot vars keysAndValuesDo:[:idx :eachVar | |
|
8840 | 413 |
' ' print. idx print. ': ' print. eachVar printCR. |
8717 | 414 |
]. |
415 |
! |
|
416 |
||
417 |
printDotsMethodSource |
|
8840 | 418 |
|home mthd src| |
8717 | 419 |
|
420 |
home := dot methodHome. |
|
421 |
mthd := home method. |
|
422 |
mthd isNil ifTrue:[ |
|
8840 | 423 |
'** no source **' printCR. |
8717 | 424 |
^ self. |
425 |
]. |
|
426 |
src := mthd source. |
|
427 |
src isNil ifTrue:[ |
|
8840 | 428 |
'** no source **' printCR. |
8717 | 429 |
^ self. |
430 |
]. |
|
431 |
src := src asCollectionOfLines. |
|
432 |
src keysAndValuesDo:[:lNr :line | |
|
433 |
lNr == dot lineNumber ifTrue:[ |
|
434 |
'>> ' print. |
|
435 |
] ifFalse:[ |
|
436 |
' ' print. |
|
437 |
]. |
|
8840 | 438 |
line printCR. |
8717 | 439 |
] |
5942
e3431a2c33f1
avoid statements after return
Claus Gittinger <cg@exept.de>
parents:
5921
diff
changeset
|
440 |
! |
e3431a2c33f1
avoid statements after return
Claus Gittinger <cg@exept.de>
parents:
5921
diff
changeset
|
441 |
|
618 | 442 |
stepping |
443 |
traceBlock := nil. |
|
444 |
tracing := false. |
|
445 |
stepping := true |
|
74 | 446 |
! |
447 |
||
618 | 448 |
tracingWith:aBlockOrNil |
449 |
traceBlock := aBlockOrNil. |
|
450 |
stepping := false. |
|
451 |
tracing := true |
|
452 |
! ! |
|
453 |
||
454 |
!MiniDebugger methodsFor:'user commands'! |
|
455 |
||
1 | 456 |
commandLoop |
3700 | 457 |
|cmd done valid context id proc| |
1 | 458 |
|
459 |
done := false. |
|
460 |
[done] whileFalse:[ |
|
10017 | 461 |
valid := false. |
462 |
cmd := self getCommand:nil. |
|
463 |
cmd isNil ifTrue:[ "/ EOF -> continue |
|
464 |
cmd := $c |
|
465 |
]. |
|
3700 | 466 |
|
10017 | 467 |
commandArg notEmpty ifTrue:[ |
468 |
id := Number readFrom:commandArg onError:nil. |
|
3700 | 469 |
|
10017 | 470 |
id notNil ifTrue:[ |
471 |
proc := Process allSubInstances detect:[:p | p id == id] ifNone:nil. |
|
472 |
proc == Processor activeProcess ifTrue:[ |
|
473 |
id := proc := nil |
|
474 |
] |
|
475 |
] |
|
476 |
]. |
|
3700 | 477 |
|
10017 | 478 |
(cmd == $l) ifTrue:[ |
479 |
valid := true. |
|
480 |
proc notNil ifTrue:[ |
|
481 |
'-------- walkback of process ' print. id print. ' -------' printCR. |
|
482 |
self printBacktraceFrom:(proc suspendedContext) |
|
483 |
] ifFalse:[ |
|
484 |
id notNil ifTrue:[ |
|
485 |
'no process with id: ' print. id printCR. |
|
486 |
] ifFalse:[ |
|
487 |
context isNil ifTrue: [ |
|
488 |
context := self getContext |
|
489 |
]. |
|
490 |
'-------- walkback of current process -------' printCR. |
|
491 |
self printBacktraceFrom:context |
|
492 |
] |
|
493 |
]. |
|
494 |
]. |
|
3700 | 495 |
|
10017 | 496 |
(cmd == $b) ifTrue:[ |
497 |
valid := true. |
|
498 |
proc notNil ifTrue:[ |
|
499 |
'-------- VM walkback of process ' print. id print. ' -------' printCR. |
|
500 |
ObjectMemory printStackBacktraceFrom:(proc suspendedContext) |
|
501 |
] ifFalse:[ |
|
502 |
id notNil ifTrue:[ |
|
503 |
'no process with id: ' print. id printCR. |
|
504 |
] ifFalse:[ |
|
505 |
'-------- VM walkback of current process -------' printCR. |
|
506 |
ObjectMemory printStackBacktrace |
|
507 |
] |
|
508 |
] |
|
509 |
]. |
|
3700 | 510 |
|
10017 | 511 |
(cmd == $S) ifTrue:[ |
512 |
valid := true. |
|
513 |
'saving "crash.img"...' print. |
|
514 |
ObjectMemory writeCrashImage. |
|
515 |
'done.' printCR. |
|
516 |
]. |
|
5802
93748287026d
better Mini- debugging tools (+/- context in debugger); interpreter in inspector.
Claus Gittinger <cg@exept.de>
parents:
5054
diff
changeset
|
517 |
|
10017 | 518 |
(cmd == $B) ifTrue:[ |
519 |
valid := true. |
|
520 |
self printAllBacktraces |
|
521 |
]. |
|
3700 | 522 |
|
10017 | 523 |
(cmd == $P) ifTrue:[ |
524 |
valid := true. |
|
525 |
self showProcesses. |
|
526 |
]. |
|
3700 | 527 |
|
10017 | 528 |
(cmd == $r) ifTrue:[ |
529 |
valid := true. |
|
530 |
dot receiver printCR |
|
531 |
]. |
|
3700 | 532 |
|
10017 | 533 |
(cmd == $i) ifTrue:[ |
534 |
valid := true. |
|
535 |
MiniInspector openOn:(dot receiver) |
|
536 |
]. |
|
3700 | 537 |
|
10017 | 538 |
(cmd == $I) ifTrue:[ |
539 |
valid := true. |
|
540 |
self interpreterLoopWith:nil |
|
541 |
]. |
|
542 |
context := nil. |
|
3009 | 543 |
|
10017 | 544 |
(cmd == $c) ifTrue:[valid := true. done := true]. |
545 |
(cmd == $s) ifTrue:[valid := true. done := true]. |
|
546 |
(cmd == $t) ifTrue:[valid := true. done := true]. |
|
547 |
(cmd == $a) ifTrue:[valid := true. done := true]. |
|
548 |
(cmd == $u) ifTrue:[ |
|
549 |
stepping := false. |
|
550 |
tracing := false. |
|
551 |
Processor activeProcess vmTrace:false. |
|
552 |
]. |
|
3700 | 553 |
|
10017 | 554 |
(cmd == $R) ifTrue:[ |
555 |
valid := true. |
|
556 |
proc notNil ifTrue:[ |
|
557 |
proc resume. |
|
558 |
] |
|
559 |
]. |
|
6938 | 560 |
|
10017 | 561 |
(cmd == $T) ifTrue:[ |
562 |
valid := true. |
|
563 |
proc notNil ifTrue:[ |
|
564 |
proc terminate. |
|
565 |
] ifFalse:[ |
|
566 |
id notNil ifTrue:[ |
|
567 |
'no process with id: ' print. id printCR. |
|
568 |
] ifFalse:[ |
|
569 |
Processor terminateActive |
|
570 |
] |
|
571 |
] |
|
572 |
]. |
|
3700 | 573 |
|
10017 | 574 |
(cmd == $W) ifTrue:[ |
575 |
valid := true. |
|
576 |
proc notNil ifTrue:[ |
|
577 |
'stopping process id: ' print. id printCR. |
|
578 |
proc stop. |
|
579 |
] ifFalse:[ |
|
580 |
'invalid process id: ' print. id printCR. |
|
581 |
] |
|
582 |
]. |
|
4003
d0f97b9cd4de
added 'S' -> stopp a process
Claus Gittinger <cg@exept.de>
parents:
3814
diff
changeset
|
583 |
|
10017 | 584 |
(cmd == $a) ifTrue:[ |
585 |
"without id-arg, this is handled by caller" |
|
586 |
proc notNil ifTrue:[ |
|
587 |
'aborting process id: ' print. id printCR. |
|
588 |
valid := true. |
|
589 |
proc interruptWith:[AbortOperationRequest raise] |
|
590 |
] ifFalse:[ |
|
591 |
'aborting' printCR. |
|
592 |
] |
|
593 |
]. |
|
3814
1227e4690753
allow aborting other threads
Claus Gittinger <cg@exept.de>
parents:
3769
diff
changeset
|
594 |
|
10017 | 595 |
(cmd == $Q) ifTrue:[ |
596 |
valid := true. |
|
597 |
proc notNil ifTrue:[ |
|
598 |
proc terminateNoSignal. |
|
599 |
] ifFalse:[ |
|
600 |
id notNil ifTrue:[ |
|
601 |
'no process with id: ' print. id printCR. |
|
602 |
] ifFalse:[ |
|
603 |
Processor terminateActiveNoSignal |
|
604 |
] |
|
605 |
] |
|
606 |
]. |
|
3700 | 607 |
|
10017 | 608 |
(cmd == $g) ifTrue:[ |
609 |
valid := true. |
|
610 |
self garbageCollectCommand:id |
|
611 |
]. |
|
3700 | 612 |
|
10017 | 613 |
(cmd == $U) ifTrue:[valid := true. MessageTracer unwrapAllMethods]. |
614 |
(cmd == $X) ifTrue:[valid := true. Smalltalk fatalAbort]. |
|
615 |
(cmd == $x) ifTrue:[valid := true. OperatingSystem exit]. |
|
3700 | 616 |
|
10017 | 617 |
(cmd == $.) ifTrue:[valid := true. self printDot ]. |
618 |
(cmd == $m) ifTrue:[valid := true. self printDotsMethodSource ]. |
|
619 |
(cmd == $-) ifTrue:[valid := true. self moveDotUp ]. |
|
620 |
(cmd == $+) ifTrue:[valid := true. self moveDotDown ]. |
|
5802
93748287026d
better Mini- debugging tools (+/- context in debugger); interpreter in inspector.
Claus Gittinger <cg@exept.de>
parents:
5054
diff
changeset
|
621 |
|
10017 | 622 |
"/ avoid usage print if return was typed ... |
623 |
((cmd == Character return) |
|
624 |
or:[cmd == Character linefeed]) ifTrue:[valid := true.]. |
|
4470 | 625 |
|
10017 | 626 |
valid ifFalse: [ |
627 |
self showValidCommandHelp. |
|
628 |
] |
|
1 | 629 |
]. |
2113
6a310e15ad58
added print-other-stacks command
Claus Gittinger <cg@exept.de>
parents:
1424
diff
changeset
|
630 |
context := nil. |
1 | 631 |
^ cmd |
1424 | 632 |
|
10017 | 633 |
"Modified: / 29-09-2006 / 12:23:18 / cg" |
1 | 634 |
! |
635 |
||
618 | 636 |
doAbort |
637 |
|con sig| |
|
638 |
||
6204
2bafef9151dd
class based exceptions - abortSignal;
Claus Gittinger <cg@exept.de>
parents:
5942
diff
changeset
|
639 |
(sig := AbortOperationRequest) isHandled ifTrue:[ |
8840 | 640 |
sig raise. |
641 |
'abort raise failed' errorPrintCR. |
|
618 | 642 |
]. |
643 |
||
644 |
"TEMPORARY kludge - find event handler context |
|
645 |
this will be removed, once real debugging is possible |
|
646 |
" |
|
647 |
con := self findContext:#processEvent. |
|
648 |
con isNil ifTrue:[ |
|
8840 | 649 |
con := self findContext:#dispatch. |
618 | 650 |
]. |
651 |
con notNil ifTrue:[ |
|
8840 | 652 |
"got it" |
653 |
con return. |
|
654 |
'return failed' errorPrintCR. |
|
618 | 655 |
]. |
656 |
||
1424 | 657 |
'found no context to resume' errorPrintCR. |
658 |
||
6204
2bafef9151dd
class based exceptions - abortSignal;
Claus Gittinger <cg@exept.de>
parents:
5942
diff
changeset
|
659 |
"Modified: / 16.11.2001 / 17:39:14 / cg" |
618 | 660 |
! |
661 |
||
5802
93748287026d
better Mini- debugging tools (+/- context in debugger); interpreter in inspector.
Claus Gittinger <cg@exept.de>
parents:
5054
diff
changeset
|
662 |
getCommand:prompt |
3126
e37ccb66f1b0
onlz ungrab the main Display (remote display could be inoperable)
Claus Gittinger <cg@exept.de>
parents:
3009
diff
changeset
|
663 |
"/ Screen notNil ifTrue:[ |
e37ccb66f1b0
onlz ungrab the main Display (remote display could be inoperable)
Claus Gittinger <cg@exept.de>
parents:
3009
diff
changeset
|
664 |
"/ Screen allScreens do:[:aScreen | |
e37ccb66f1b0
onlz ungrab the main Display (remote display could be inoperable)
Claus Gittinger <cg@exept.de>
parents:
3009
diff
changeset
|
665 |
"/ aScreen ungrabPointer. |
e37ccb66f1b0
onlz ungrab the main Display (remote display could be inoperable)
Claus Gittinger <cg@exept.de>
parents:
3009
diff
changeset
|
666 |
"/ aScreen ungrabKeyboard. |
e37ccb66f1b0
onlz ungrab the main Display (remote display could be inoperable)
Claus Gittinger <cg@exept.de>
parents:
3009
diff
changeset
|
667 |
"/ ]. |
e37ccb66f1b0
onlz ungrab the main Display (remote display could be inoperable)
Claus Gittinger <cg@exept.de>
parents:
3009
diff
changeset
|
668 |
"/ ]. |
e37ccb66f1b0
onlz ungrab the main Display (remote display could be inoperable)
Claus Gittinger <cg@exept.de>
parents:
3009
diff
changeset
|
669 |
|
e37ccb66f1b0
onlz ungrab the main Display (remote display could be inoperable)
Claus Gittinger <cg@exept.de>
parents:
3009
diff
changeset
|
670 |
Display notNil ifTrue:[ |
10322 | 671 |
Display ungrabPointer. |
672 |
Display ungrabKeyboard. |
|
852
5c4a0585ba0b
ungrab pointer for every input
Claus Gittinger <cg@exept.de>
parents:
720
diff
changeset
|
673 |
]. |
5c4a0585ba0b
ungrab pointer for every input
Claus Gittinger <cg@exept.de>
parents:
720
diff
changeset
|
674 |
|
8840 | 675 |
(prompt |
10322 | 676 |
? (nesting == 0 ifTrue:[ |
677 |
'MiniDebugger> ' |
|
678 |
] ifFalse:[ |
|
679 |
'MiniDebugger' , nesting printString , '>' |
|
680 |
])) print. |
|
93 | 681 |
|
7706 | 682 |
UserInterrupt handle:[:ex | |
10322 | 683 |
ex restart |
159 | 684 |
] do:[ |
10322 | 685 |
|c cmd arg cnt| |
3700 | 686 |
|
10322 | 687 |
cmd := Character fromUser. |
688 |
cmd isNil ifTrue:[ |
|
689 |
" |
|
690 |
mhmh end-of-file; |
|
691 |
return a 'c' (for continue); hope thats ok. |
|
692 |
" |
|
693 |
cmd := $c |
|
694 |
]. |
|
93 | 695 |
|
10322 | 696 |
cnt := nil. |
697 |
(cmd isDigit) ifTrue:[ |
|
698 |
cnt := 0. |
|
699 |
[cmd isDigit] whileTrue:[ |
|
700 |
cnt := (cnt * 10) + cmd digitValue. |
|
701 |
cmd := Character fromUser |
|
702 |
]. |
|
703 |
[cmd == Character space] whileTrue:[ |
|
704 |
cmd := Character fromUser |
|
705 |
]. |
|
706 |
]. |
|
4003
d0f97b9cd4de
added 'S' -> stopp a process
Claus Gittinger <cg@exept.de>
parents:
3814
diff
changeset
|
707 |
|
10322 | 708 |
" |
709 |
collect to end-of-line in arg |
|
710 |
" |
|
711 |
c := cmd. |
|
712 |
arg := ''. |
|
713 |
[c isNil or:[c isEndOfLineCharacter]] whileFalse: [ |
|
714 |
arg := arg copyWith:c. |
|
715 |
c := Character fromUser. |
|
716 |
]. |
|
717 |
commandArg := arg copyFrom:2. |
|
718 |
command := cmd. |
|
719 |
commandCount := cnt. |
|
1 | 720 |
]. |
3700 | 721 |
^ command |
976 | 722 |
|
3700 | 723 |
"Modified: / 31.7.1998 / 16:11:01 / cg" |
1 | 724 |
! |
725 |
||
726 |
interpreterLoopWith:anObject |
|
5802
93748287026d
better Mini- debugging tools (+/- context in debugger); interpreter in inspector.
Claus Gittinger <cg@exept.de>
parents:
5054
diff
changeset
|
727 |
|line done rslt| |
93748287026d
better Mini- debugging tools (+/- context in debugger); interpreter in inspector.
Claus Gittinger <cg@exept.de>
parents:
5054
diff
changeset
|
728 |
|
1424 | 729 |
'read-eval-print loop; exit with empty line' printCR. |
3700 | 730 |
'' printCR. |
731 |
||
1 | 732 |
done := false. |
733 |
[done] whileFalse:[ |
|
8840 | 734 |
'> ' print. |
3700 | 735 |
|
8840 | 736 |
line := Stdin nextLine. |
737 |
(line size == 0) ifTrue:[ |
|
738 |
done := true |
|
739 |
] ifFalse:[ |
|
740 |
"/ rslt := Compiler evaluate:line |
|
741 |
"/ receiver:anObject |
|
742 |
"/ notifying:nil. |
|
5802
93748287026d
better Mini- debugging tools (+/- context in debugger); interpreter in inspector.
Claus Gittinger <cg@exept.de>
parents:
5054
diff
changeset
|
743 |
|
93748287026d
better Mini- debugging tools (+/- context in debugger); interpreter in inspector.
Claus Gittinger <cg@exept.de>
parents:
5054
diff
changeset
|
744 |
rslt := Compiler |
93748287026d
better Mini- debugging tools (+/- context in debugger); interpreter in inspector.
Claus Gittinger <cg@exept.de>
parents:
5054
diff
changeset
|
745 |
evaluate:line |
8840 | 746 |
in:dot |
5802
93748287026d
better Mini- debugging tools (+/- context in debugger); interpreter in inspector.
Claus Gittinger <cg@exept.de>
parents:
5054
diff
changeset
|
747 |
receiver:dot receiver |
93748287026d
better Mini- debugging tools (+/- context in debugger); interpreter in inspector.
Claus Gittinger <cg@exept.de>
parents:
5054
diff
changeset
|
748 |
notifying:nil |
93748287026d
better Mini- debugging tools (+/- context in debugger); interpreter in inspector.
Claus Gittinger <cg@exept.de>
parents:
5054
diff
changeset
|
749 |
ifFail:[]. |
93748287026d
better Mini- debugging tools (+/- context in debugger); interpreter in inspector.
Claus Gittinger <cg@exept.de>
parents:
5054
diff
changeset
|
750 |
rslt printCR. |
8840 | 751 |
] |
1 | 752 |
] |
1424 | 753 |
|
3700 | 754 |
"Modified: / 31.7.1998 / 16:01:47 / cg" |
618 | 755 |
! |
756 |
||
2772 | 757 |
printAllBacktraces |
758 |
Process allInstancesDo:[:p | |
|
759 |
(p ~~ Processor activeProcess |
|
760 |
and:[p isDead not]) ifTrue:[ |
|
761 |
'---------------------------------------------------------' printCR. |
|
8840 | 762 |
' proc id=' print. p id print. |
2772 | 763 |
' name=''' print. p name print. |
764 |
''' createdBy: ' print. p creatorId print. |
|
8840 | 765 |
' state=' print. p state print. |
2772 | 766 |
' prio=' print. p priority printCR. |
767 |
'' printCR. '' printCR. |
|
768 |
||
769 |
self printBacktraceFrom:(p suspendedContext) |
|
770 |
] |
|
771 |
] |
|
772 |
! |
|
773 |
||
618 | 774 |
showProcesses |
775 |
|active| |
|
776 |
||
777 |
active := Processor activeProcess. |
|
3700 | 778 |
'current id=' print. active id print. ' name=''' print. active name print. '''' printCR. |
618 | 779 |
|
3700 | 780 |
Process allSubInstancesDo:[:p | |
8840 | 781 |
'proc id=' print. (p id printStringPaddedTo:5) print. |
782 |
(p state printStringPaddedTo:10) print. |
|
783 |
' pri=' print. (p priority printStringPaddedTo:2) print. |
|
784 |
' creator:' print. (p creatorId printStringPaddedTo:5) print. |
|
785 |
' name=''' print. p name print. |
|
786 |
'''' printCR. |
|
618 | 787 |
] |
1424 | 788 |
|
3700 | 789 |
"Modified: / 31.7.1998 / 16:30:19 / cg" |
7701 | 790 |
! |
791 |
||
792 |
showValidCommandHelp |
|
8840 | 793 |
'valid commands: |
7701 | 794 |
c ..... continue |
795 |
s ..... step |
|
796 |
t ..... trace (continue with trace) |
|
797 |
a [id]. abort (i.e. raise abort signal) in (current) process |
|
798 |
T [id]. terminate (current) process |
|
799 |
W [id]. stop (current) process |
|
800 |
R [id]. resume (current) process |
|
801 |
Q [id]. quick terminate (current) process - no unwinds or cleanup |
|
802 |
||
803 |
P ..... list processes |
|
804 |
l [id]. print context chain (of process with id) |
|
805 |
b [id]. full (VM) backtrace |
|
806 |
B ..... backtrace of all other processes |
|
807 |
||
808 |
U ..... unwrap all traced/breakpointed methods |
|
809 |
g ..... collect all garbage |
|
810 |
g 2.... collect all garbage & reclaim symbols |
|
811 |
g 3.... collect all garbage, reclaim symbols and compress |
|
812 |
||
813 |
S ..... save snapshot into crash.img |
|
814 |
x ..... exit Smalltalk |
|
815 |
X ..... exit Smalltalk (+core dump) |
|
816 |
||
817 |
. ..... print dot (the current context) |
|
8717 | 818 |
m ..... print dots method source code |
819 |
- ..... move dot up (sender) |
|
820 |
+ ..... move dot down (called context) |
|
7701 | 821 |
|
822 |
r ..... receiver (in dot) printString |
|
823 |
i ..... inspect receiver (in dot) |
|
824 |
I ..... interpreter (expression evaluator) |
|
825 |
||
826 |
To repair a broken X-Connection, enter an interpreter and evaluate: |
|
827 |
Display := XWorkstation new. |
|
828 |
Display initializeFor:''hostName:0''. |
|
829 |
Display startDispatch. |
|
830 |
NewLauncher openOnDevice:Display. |
|
831 |
<empty line> |
|
832 |
then enter ''c'' to continue; a NewLauncher should pop up soon. |
|
833 |
||
834 |
' errorPrintCR |
|
1 | 835 |
! ! |
618 | 836 |
|
658 | 837 |
!MiniDebugger class methodsFor:'documentation'! |
838 |
||
839 |
version |
|
10322 | 840 |
^ '$Header: /cvs/stx/stx/libbasic/MiniDebugger.st,v 1.69 2007-01-12 20:58:09 cg Exp $' |
658 | 841 |
! ! |