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