author | Claus Gittinger <cg@exept.de> |
Sat, 03 Nov 2012 17:31:18 +0100 | |
changeset 12008 | a2ca11e42ad2 |
parent 11788 | 063a9c415a06 |
child 12009 | 9d2c3ebb1a2d |
permissions | -rw-r--r-- |
8234 | 1 |
" |
2 |
COPYRIGHT (c) 2008 by eXept Software AG |
|
8241 | 3 |
All Rights Reserved |
8234 | 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 |
" |
|
8233 | 12 |
"{ Package: 'stx:libtool' }" |
13 |
||
14 |
"{ NameSpace: Tools }" |
|
15 |
||
16 |
ApplicationModel subclass:#BreakpointBrowser |
|
17 |
instanceVariableNames:'updatingLabelShown breakpointList shownCopyOfBreakpointList |
|
18 |
selectionIndexHolder currentSortColumn currentSortIsReverse |
|
9077 | 19 |
showHalts showOthers showAssertions showCodeBreakpoints |
12008
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
20 |
showCodeBreakpointsFor showMethodBreakpoints showLineBreakpoints |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
21 |
showDebugCode codeView infoHolder updateProcess |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
22 |
showWhichHaltsHolder' |
9077 | 23 |
classVariableNames:'MessagesAndTypes' |
8233 | 24 |
poolDictionaries:'' |
25 |
category:'Interface-Smalltalk-Breakpoints' |
|
26 |
! |
|
27 |
||
28 |
Object subclass:#BreakpointListEntry |
|
9079 | 29 |
instanceVariableNames:'type ignoredInfo arg className selector lineNumber info enabled' |
8233 | 30 |
classVariableNames:'' |
31 |
poolDictionaries:'' |
|
8302 | 32 |
privateIn:BreakpointBrowser |
8233 | 33 |
! |
34 |
||
35 |
RBProgramNodeVisitor subclass:#MessageArgumentExtractor |
|
36 |
instanceVariableNames:'callBack selectorToSearch' |
|
37 |
classVariableNames:'' |
|
38 |
poolDictionaries:'' |
|
8302 | 39 |
privateIn:BreakpointBrowser |
8233 | 40 |
! |
41 |
||
42 |
!BreakpointBrowser class methodsFor:'documentation'! |
|
43 |
||
8234 | 44 |
copyright |
45 |
" |
|
46 |
COPYRIGHT (c) 2008 by eXept Software AG |
|
8241 | 47 |
All Rights Reserved |
8234 | 48 |
|
49 |
This software is furnished under a license and may be used |
|
50 |
only in accordance with the terms of that license and with the |
|
51 |
inclusion of the above copyright notice. This software may not |
|
52 |
be provided or otherwise made available to, or used by, any |
|
53 |
other person. No title to or ownership of the software is |
|
54 |
hereby transferred. |
|
55 |
" |
|
56 |
! |
|
57 |
||
8233 | 58 |
documentation |
59 |
" |
|
8234 | 60 |
tool to list breakpoints (breakPoint/halt/assert) |
8233 | 61 |
|
62 |
[author:] |
|
8241 | 63 |
cg (cg@FUSI) |
8233 | 64 |
" |
65 |
! ! |
|
66 |
||
9077 | 67 |
!BreakpointBrowser class methodsFor:'initialization'! |
68 |
||
69 |
defaultListOfMessagesAndTypes |
|
70 |
"the set of messages which are shown; |
|
71 |
you can add your own one's with a #other categorization" |
|
72 |
||
73 |
^ #( |
|
74 |
(#breakPoint: #breakPoint) |
|
75 |
(#breakPoint:info: #breakPoint) |
|
76 |
(#debuggingCodeFor:is: #debugCode) |
|
77 |
(#halt #halt) |
|
78 |
(#halt: #halt) |
|
79 |
(#assert: #assertion) |
|
80 |
(#assert:message: #assertion) |
|
81 |
(#todo #other) |
|
82 |
(#todo: #other) |
|
83 |
). |
|
84 |
! |
|
85 |
||
86 |
initialize |
|
87 |
MessagesAndTypes := self defaultListOfMessagesAndTypes |
|
88 |
! ! |
|
89 |
||
9335 | 90 |
!BreakpointBrowser class methodsFor:'defaults'! |
91 |
||
92 |
defaultIcon |
|
9804 | 93 |
<resource: #programImage> |
94 |
||
9335 | 95 |
^ ToolbarIconLibrary openBreakpointBrowserIcon |
96 |
! ! |
|
97 |
||
8233 | 98 |
!BreakpointBrowser class methodsFor:'interface specs'! |
99 |
||
100 |
windowSpec |
|
101 |
"This resource specification was automatically generated |
|
102 |
by the UIPainter of ST/X." |
|
103 |
||
104 |
"Do not manually edit this!! If it is corrupted, |
|
105 |
the UIPainter may not be able to read the specification." |
|
106 |
||
107 |
" |
|
108 |
UIPainter new openOnClass:Tools::BreakpointBrowser andSelector:#windowSpec |
|
109 |
Tools::BreakpointBrowser new openInterface:#windowSpec |
|
110 |
Tools::BreakpointBrowser open |
|
111 |
" |
|
112 |
||
113 |
<resource: #canvas> |
|
114 |
||
8357 | 115 |
^ |
8233 | 116 |
#(FullSpec |
8357 | 117 |
name: windowSpec |
118 |
window: |
|
8233 | 119 |
(WindowSpec |
8357 | 120 |
label: 'Breakpoint Browser' |
121 |
name: 'Breakpoint Browser' |
|
122 |
min: (Point 10 10) |
|
123 |
bounds: (Rectangle 0 0 680 691) |
|
124 |
menu: mainMenu |
|
9335 | 125 |
icon: defaultIcon |
8357 | 126 |
) |
127 |
component: |
|
8233 | 128 |
(SpecCollection |
8357 | 129 |
collection: ( |
130 |
(MenuPanelSpec |
|
131 |
name: 'ToolBar1' |
|
132 |
layout: (LayoutFrame 0 0.0 0 0 0 1.0 40 0) |
|
133 |
menu: toolBarMenu |
|
134 |
textDefault: true |
|
135 |
) |
|
136 |
(VariableVerticalPanelSpec |
|
137 |
name: 'VariableVerticalPanel1' |
|
138 |
layout: (LayoutFrame 0 0 40 0 0 1 0 1) |
|
139 |
snapMode: both |
|
140 |
component: |
|
141 |
(SpecCollection |
|
142 |
collection: ( |
|
143 |
(DataSetSpec |
|
144 |
name: 'Table' |
|
145 |
model: selectionIndexHolder |
|
146 |
menu: itemMenu |
|
147 |
hasHorizontalScrollBar: true |
|
148 |
hasVerticalScrollBar: true |
|
149 |
dataList: shownCopyOfBreakpointList |
|
150 |
doubleClickSelector: itemDoubleClicked: |
|
151 |
columnHolder: tableColumns |
|
152 |
) |
|
153 |
(TextEditorSpec |
|
154 |
name: 'TextEditor1' |
|
155 |
hasHorizontalScrollBar: true |
|
156 |
hasVerticalScrollBar: true |
|
157 |
hasKeyboardFocusInitially: false |
|
158 |
viewClassName: 'CodeView' |
|
159 |
postBuildCallback: postBuildCodeView: |
|
160 |
) |
|
161 |
) |
|
162 |
||
163 |
) |
|
164 |
handles: (Any 0.5 1.0) |
|
165 |
) |
|
166 |
(LabelSpec |
|
167 |
label: 'Updating - Please Wait...' |
|
168 |
name: 'Label1' |
|
169 |
layout: (LayoutFrame 0 0 40 0 0 1 0 1) |
|
170 |
visibilityChannel: updatingLabelShown |
|
171 |
backgroundColor: (Color 100.0 49.999237048905 49.999237048905) |
|
172 |
translateLabel: true |
|
173 |
) |
|
8365 | 174 |
(ViewSpec |
175 |
name: 'InfoBox' |
|
176 |
layout: (LayoutFrame 0 0 -30 1 0 1 0 1) |
|
177 |
visibilityChannel: updatingLabelShown |
|
178 |
component: |
|
179 |
(SpecCollection |
|
180 |
collection: ( |
|
181 |
(LabelSpec |
|
182 |
label: 'Label' |
|
183 |
name: 'Label2' |
|
184 |
layout: (LayoutFrame 2 0 2 0 680 0 30 0) |
|
185 |
level: -1 |
|
186 |
translateLabel: true |
|
187 |
labelChannel: infoHolder |
|
188 |
adjust: left |
|
189 |
) |
|
190 |
) |
|
191 |
||
192 |
) |
|
193 |
) |
|
8357 | 194 |
) |
195 |
||
196 |
) |
|
8233 | 197 |
) |
198 |
! ! |
|
199 |
||
200 |
!BreakpointBrowser class methodsFor:'menu specs'! |
|
201 |
||
202 |
itemMenu |
|
203 |
"This resource specification was automatically generated |
|
204 |
by the MenuEditor of ST/X." |
|
205 |
||
206 |
"Do not manually edit this!! If it is corrupted, |
|
207 |
the MenuEditor may not be able to read the specification." |
|
208 |
||
209 |
" |
|
210 |
MenuEditor new openOnClass:Tools::BreakpointBrowser andSelector:#itemMenu |
|
211 |
(Menu new fromLiteralArrayEncoding:(Tools::BreakpointBrowser itemMenu)) startUp |
|
212 |
" |
|
213 |
||
214 |
<resource: #menu> |
|
215 |
||
9079 | 216 |
^ |
8233 | 217 |
#(Menu |
8362 | 218 |
( |
219 |
(MenuItem |
|
220 |
label: 'Browse' |
|
221 |
itemValue: browseSelectedItem |
|
222 |
translateLabel: true |
|
223 |
) |
|
9079 | 224 |
(MenuItem |
225 |
label: '-' |
|
226 |
) |
|
227 |
(MenuItem |
|
228 |
enabled: selectedItemIsIgnoredHalt |
|
9795 | 229 |
label: 'Stop Ignoring this Halt' |
9079 | 230 |
itemValue: reenableHalt |
231 |
translateLabel: true |
|
232 |
) |
|
8362 | 233 |
) |
234 |
nil |
|
235 |
nil |
|
8233 | 236 |
) |
237 |
! |
|
238 |
||
239 |
mainMenu |
|
240 |
"This resource specification was automatically generated |
|
241 |
by the MenuEditor of ST/X." |
|
242 |
||
243 |
"Do not manually edit this!! If it is corrupted, |
|
244 |
the MenuEditor may not be able to read the specification." |
|
245 |
||
12008
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
246 |
|
8233 | 247 |
" |
248 |
MenuEditor new openOnClass:Tools::BreakpointBrowser andSelector:#mainMenu |
|
249 |
(Menu new fromLiteralArrayEncoding:(Tools::BreakpointBrowser mainMenu)) startUp |
|
250 |
" |
|
251 |
||
252 |
<resource: #menu> |
|
253 |
||
9045 | 254 |
^ |
8233 | 255 |
#(Menu |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
256 |
( |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
257 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
258 |
label: 'File' |
9045 | 259 |
submenu: |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
260 |
(Menu |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
261 |
( |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
262 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
263 |
label: 'Exit' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
264 |
itemValue: closeRequest |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
265 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
266 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
267 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
268 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
269 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
270 |
) |
9045 | 271 |
(MenuItem |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
272 |
label: 'Selection' |
9045 | 273 |
submenu: |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
274 |
(Menu |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
275 |
( |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
276 |
(MenuItem |
9077 | 277 |
enabled: hasSelectionHolder |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
278 |
label: 'Browse' |
8362 | 279 |
itemValue: browseSelectedItem |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
280 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
281 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
282 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
283 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
284 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
285 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
286 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
287 |
label: 'View' |
9045 | 288 |
submenu: |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
289 |
(Menu |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
290 |
( |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
291 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
292 |
label: 'Update List' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
293 |
itemValue: updateList |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
294 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
295 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
296 |
label: '-' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
297 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
298 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
299 |
label: 'Assertions' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
300 |
itemValue: showAssertions: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
301 |
hideMenuOnActivated: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
302 |
indication: showAssertions |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
303 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
304 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
305 |
label: 'Halts' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
306 |
itemValue: showHalts: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
307 |
hideMenuOnActivated: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
308 |
indication: showHalts |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
309 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
310 |
(MenuItem |
9077 | 311 |
enabled: showHalts |
312 |
label: ' ' |
|
313 |
submenu: |
|
314 |
(Menu |
|
315 |
( |
|
316 |
(MenuItem |
|
317 |
label: 'All Halts' |
|
318 |
nameKey: AllHalts |
|
319 |
choice: showWhichHaltsHolder |
|
320 |
choiceValue: all |
|
321 |
) |
|
322 |
(MenuItem |
|
323 |
label: 'Enabled Halts' |
|
324 |
nameKey: EnabledHalts |
|
325 |
choice: showWhichHaltsHolder |
|
326 |
choiceValue: enabled |
|
327 |
) |
|
328 |
(MenuItem |
|
329 |
label: 'Ignored Halts' |
|
330 |
nameKey: IgnoredHalts |
|
331 |
choice: showWhichHaltsHolder |
|
332 |
choiceValue: ignored |
|
333 |
) |
|
334 |
) |
|
335 |
nil |
|
336 |
nil |
|
337 |
) |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
338 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
339 |
(MenuItem |
12008
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
340 |
label: 'Coded Breakpoints' |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
341 |
itemValue: showCodeBreakpoints: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
342 |
hideMenuOnActivated: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
343 |
indication: showCodeBreakpoints |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
344 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
345 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
346 |
enabled: showCodeBreakpoints |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
347 |
label: ' ' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
348 |
submenuChannel: codeBreakpointMenu |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
349 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
350 |
(MenuItem |
9077 | 351 |
label: 'Debug Code' |
352 |
itemValue: showDebugCode: |
|
353 |
hideMenuOnActivated: false |
|
354 |
indication: showDebugCode |
|
355 |
) |
|
356 |
(MenuItem |
|
357 |
label: 'Other Debug Messages' |
|
358 |
itemValue: showOthers: |
|
359 |
hideMenuOnActivated: false |
|
360 |
indication: showOthers |
|
361 |
) |
|
362 |
(MenuItem |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
363 |
label: '-' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
364 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
365 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
366 |
label: 'Method Breakpoints' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
367 |
itemValue: showMethodBreakpoints: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
368 |
hideMenuOnActivated: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
369 |
indication: showMethodBreakpoints |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
370 |
) |
12008
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
371 |
(MenuItem |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
372 |
label: 'Line Breakpoints' |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
373 |
itemValue: showLineBreakpoints: |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
374 |
hideMenuOnActivated: false |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
375 |
indication: showLineBreakpoints |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
376 |
) |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
377 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
378 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
379 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
380 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
381 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
382 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
383 |
label: 'Enable' |
9045 | 384 |
submenu: |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
385 |
(Menu |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
386 |
( |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
387 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
388 |
label: 'Assertions' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
389 |
itemValue: enableAssertions: |
9045 | 390 |
hideMenuOnActivated: false |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
391 |
indication: enableAssertions |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
392 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
393 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
394 |
label: 'Halts' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
395 |
itemValue: enableHalts: |
9045 | 396 |
hideMenuOnActivated: false |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
397 |
indication: enableHalts |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
398 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
399 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
400 |
label: '-' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
401 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
402 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
403 |
label: 'Code Breakpoints' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
404 |
submenuChannel: enabledCodeBreakpointMenu |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
405 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
406 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
407 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
408 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
409 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
410 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
411 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
412 |
label: 'Help' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
413 |
startGroup: right |
9045 | 414 |
submenu: |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
415 |
(Menu |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
416 |
( |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
417 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
418 |
label: 'Documentation' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
419 |
itemValue: openDocumentation |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
420 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
421 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
422 |
label: '-' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
423 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
424 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
425 |
label: 'About this Application...' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
426 |
itemValue: openAboutThisApplication |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
427 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
428 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
429 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
430 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
431 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
432 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
433 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
434 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
435 |
nil |
8233 | 436 |
) |
437 |
! |
|
438 |
||
439 |
toolBarMenu |
|
440 |
"This resource specification was automatically generated |
|
441 |
by the MenuEditor of ST/X." |
|
442 |
||
443 |
"Do not manually edit this!! If it is corrupted, |
|
444 |
the MenuEditor may not be able to read the specification." |
|
445 |
||
446 |
" |
|
447 |
MenuEditor new openOnClass:Tools::BreakpointBrowser andSelector:#toolBarMenu |
|
448 |
(Menu new fromLiteralArrayEncoding:(Tools::BreakpointBrowser toolBarMenu)) startUp |
|
449 |
" |
|
450 |
||
451 |
<resource: #menu> |
|
452 |
||
8241 | 453 |
^ |
8233 | 454 |
#(Menu |
10853 | 455 |
( |
456 |
(MenuItem |
|
457 |
label: 'Update List' |
|
458 |
itemValue: updateList |
|
459 |
translateLabel: true |
|
460 |
isButton: true |
|
461 |
labelImage: (ResourceRetriever ToolbarIconLibrary reloadIcon) |
|
462 |
) |
|
463 |
(MenuItem |
|
464 |
label: '-' |
|
465 |
) |
|
466 |
(MenuItem |
|
467 |
enabled: hasSelectionHolder |
|
468 |
label: 'Browse Selected Method' |
|
469 |
itemValue: browseSelectedItem |
|
470 |
translateLabel: true |
|
471 |
isButton: true |
|
472 |
labelImage: (ResourceRetriever ToolbarIconLibrary startNewSystemBrowserIcon) |
|
473 |
) |
|
474 |
) |
|
475 |
nil |
|
476 |
nil |
|
8233 | 477 |
) |
10853 | 478 |
|
479 |
"Modified: / 08-11-2011 / 16:43:49 / cg" |
|
8233 | 480 |
! ! |
481 |
||
482 |
!BreakpointBrowser class methodsFor:'tableColumns specs'! |
|
483 |
||
484 |
tableColumns |
|
485 |
"This resource specification was automatically generated |
|
486 |
by the DataSetBuilder of ST/X." |
|
487 |
||
488 |
"Do not manually edit this!! If it is corrupted, |
|
489 |
the DataSetBuilder may not be able to read the specification." |
|
490 |
||
491 |
" |
|
492 |
DataSetBuilder new openOnClass:Tools::BreakpointBrowser andSelector:#tableColumns |
|
493 |
" |
|
494 |
||
495 |
<resource: #tableColumns> |
|
496 |
||
497 |
^#( |
|
498 |
(DataSetColumnSpec |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
499 |
label: 'Type' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
500 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
501 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
502 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
503 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
504 |
labelActionArgument: 'type' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
505 |
width: 70 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
506 |
model: type |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
507 |
canSelect: false |
8233 | 508 |
) |
509 |
(DataSetColumnSpec |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
510 |
label: 'Arg' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
511 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
512 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
513 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
514 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
515 |
labelActionArgument: 'type' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
516 |
width: 50 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
517 |
model: arg |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
518 |
canSelect: false |
8233 | 519 |
) |
520 |
(DataSetColumnSpec |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
521 |
label: 'Class' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
522 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
523 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
524 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
525 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
526 |
labelActionArgument: 'className' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
527 |
width: 150 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
528 |
model: className |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
529 |
canSelect: false |
8233 | 530 |
) |
531 |
(DataSetColumnSpec |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
532 |
label: 'Method' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
533 |
labelAlignment: left |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
534 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
535 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
536 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
537 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
538 |
labelActionArgument: 'selector' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
539 |
width: 200 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
540 |
model: selector |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
541 |
canSelect: false |
8233 | 542 |
) |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
543 |
"/ (DataSetColumnSpec |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
544 |
"/ label: 'Line' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
545 |
"/ labelAlignment: left |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
546 |
"/ activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
547 |
"/ activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
548 |
"/ labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
549 |
"/ labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
550 |
"/ labelActionArgument: 'lineNumber' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
551 |
"/ width: 35 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
552 |
"/ model: lineNumber |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
553 |
"/ canSelect: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
554 |
"/ ) |
8233 | 555 |
(DataSetColumnSpec |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
556 |
label: 'Info' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
557 |
labelAlignment: left |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
558 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
559 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
560 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
561 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
562 |
labelActionArgument: 'info' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
563 |
model: info |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
564 |
canSelect: false |
8233 | 565 |
) |
566 |
) |
|
567 |
! |
|
568 |
||
569 |
tableColumns_v1 |
|
570 |
"This resource specification was automatically generated |
|
571 |
by the DataSetBuilder of ST/X." |
|
572 |
||
573 |
"Do not manually edit this!! If it is corrupted, |
|
574 |
the DataSetBuilder may not be able to read the specification." |
|
575 |
||
576 |
" |
|
577 |
DataSetBuilder new openOnClass:Tools::BreakpointBrowser andSelector:#tableColumns |
|
578 |
" |
|
579 |
||
580 |
<resource: #tableColumns> |
|
581 |
||
582 |
^#( |
|
583 |
(DataSetColumnSpec |
|
8241 | 584 |
label: 'Enabled' |
585 |
activeHelpKey: '' |
|
586 |
activeHelpKeyForLabel: '' |
|
587 |
labelButtonType: Button |
|
588 |
width: 50 |
|
589 |
editorType: CheckToggle |
|
590 |
rendererType: CheckToggle |
|
591 |
model: enabled |
|
8233 | 592 |
) |
593 |
(DataSetColumnSpec |
|
8241 | 594 |
label: 'Type' |
595 |
activeHelpKey: '' |
|
596 |
activeHelpKeyForLabel: '' |
|
597 |
labelButtonType: Button |
|
598 |
labelActionSelector: sortBy: |
|
599 |
labelActionArgument: 'type' |
|
600 |
width: 60 |
|
601 |
model: type |
|
602 |
canSelect: false |
|
8233 | 603 |
) |
604 |
(DataSetColumnSpec |
|
8241 | 605 |
label: 'Arg' |
606 |
activeHelpKey: '' |
|
607 |
activeHelpKeyForLabel: '' |
|
608 |
labelButtonType: Button |
|
609 |
labelActionSelector: sortBy: |
|
610 |
labelActionArgument: 'type' |
|
611 |
width: 50 |
|
612 |
model: arg |
|
613 |
canSelect: false |
|
8233 | 614 |
) |
615 |
(DataSetColumnSpec |
|
8241 | 616 |
label: 'Class' |
617 |
activeHelpKey: '' |
|
618 |
activeHelpKeyForLabel: '' |
|
619 |
labelButtonType: Button |
|
620 |
labelActionSelector: sortBy: |
|
621 |
labelActionArgument: 'className' |
|
622 |
width: 150 |
|
623 |
model: className |
|
624 |
canSelect: false |
|
8233 | 625 |
) |
626 |
(DataSetColumnSpec |
|
8241 | 627 |
label: 'Method' |
628 |
labelAlignment: left |
|
629 |
activeHelpKey: '' |
|
630 |
activeHelpKeyForLabel: '' |
|
631 |
labelButtonType: Button |
|
632 |
labelActionSelector: sortBy: |
|
633 |
labelActionArgument: 'selector' |
|
634 |
width: 200 |
|
635 |
model: selector |
|
636 |
canSelect: false |
|
8233 | 637 |
) |
638 |
(DataSetColumnSpec |
|
8241 | 639 |
label: 'Line' |
640 |
labelAlignment: left |
|
641 |
activeHelpKey: '' |
|
642 |
activeHelpKeyForLabel: '' |
|
643 |
labelButtonType: Button |
|
644 |
labelActionSelector: sortBy: |
|
645 |
labelActionArgument: 'lineNumber' |
|
646 |
width: 35 |
|
647 |
model: lineNumber |
|
648 |
canSelect: false |
|
8233 | 649 |
) |
650 |
(DataSetColumnSpec |
|
8241 | 651 |
label: 'Info' |
652 |
labelAlignment: left |
|
653 |
activeHelpKey: '' |
|
654 |
activeHelpKeyForLabel: '' |
|
655 |
labelButtonType: Button |
|
656 |
labelActionSelector: sortBy: |
|
657 |
labelActionArgument: 'info' |
|
658 |
model: info |
|
659 |
canSelect: false |
|
8233 | 660 |
) |
661 |
) |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
662 |
! |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
663 |
|
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
664 |
tableColumns_v2 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
665 |
"This resource specification was automatically generated |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
666 |
by the DataSetBuilder of ST/X." |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
667 |
|
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
668 |
"Do not manually edit this!! If it is corrupted, |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
669 |
the DataSetBuilder may not be able to read the specification." |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
670 |
|
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
671 |
" |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
672 |
DataSetBuilder new openOnClass:Tools::BreakpointBrowser andSelector:#tableColumns |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
673 |
" |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
674 |
|
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
675 |
<resource: #tableColumns> |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
676 |
|
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
677 |
^#( |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
678 |
(DataSetColumnSpec |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
679 |
label: 'Type' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
680 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
681 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
682 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
683 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
684 |
labelActionArgument: 'type' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
685 |
width: 70 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
686 |
model: type |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
687 |
canSelect: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
688 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
689 |
(DataSetColumnSpec |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
690 |
label: 'Arg' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
691 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
692 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
693 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
694 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
695 |
labelActionArgument: 'type' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
696 |
width: 50 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
697 |
model: arg |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
698 |
canSelect: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
699 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
700 |
(DataSetColumnSpec |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
701 |
label: 'Class' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
702 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
703 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
704 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
705 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
706 |
labelActionArgument: 'className' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
707 |
width: 150 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
708 |
model: className |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
709 |
canSelect: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
710 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
711 |
(DataSetColumnSpec |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
712 |
label: 'Method' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
713 |
labelAlignment: left |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
714 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
715 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
716 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
717 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
718 |
labelActionArgument: 'selector' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
719 |
width: 200 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
720 |
model: selector |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
721 |
canSelect: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
722 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
723 |
(DataSetColumnSpec |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
724 |
label: 'Line' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
725 |
labelAlignment: left |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
726 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
727 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
728 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
729 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
730 |
labelActionArgument: 'lineNumber' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
731 |
width: 35 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
732 |
model: lineNumber |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
733 |
canSelect: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
734 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
735 |
(DataSetColumnSpec |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
736 |
label: 'Info' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
737 |
labelAlignment: left |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
738 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
739 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
740 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
741 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
742 |
labelActionArgument: 'info' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
743 |
model: info |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
744 |
canSelect: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
745 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
746 |
) |
8233 | 747 |
! ! |
748 |
||
749 |
!BreakpointBrowser methodsFor:'accessing'! |
|
750 |
||
8302 | 751 |
aboutThisApplicationText |
752 |
|msg| |
|
753 |
||
754 |
msg := super aboutThisApplicationText. |
|
755 |
msg := msg , '\\Written by Claus Gittinger (cg@exept.de).'. |
|
756 |
^msg withCRs. |
|
757 |
! |
|
758 |
||
8233 | 759 |
breakpointListEntryAtIndex:idx |
760 |
^ shownCopyOfBreakpointList at:idx ifAbsent:nil |
|
761 |
||
762 |
||
763 |
||
764 |
||
765 |
||
766 |
! |
|
767 |
||
9077 | 768 |
messagesAndTypes |
769 |
"the spec of selectors to offer" |
|
770 |
||
771 |
^ MessagesAndTypes |
|
772 |
! |
|
773 |
||
8233 | 774 |
selectedBreakpointListEntry |
8398 | 775 |
self selectionIndex isNil ifTrue:[^ nil]. |
8233 | 776 |
^ self breakpointListEntryAtIndex:(self selectionIndex). |
777 |
! |
|
778 |
||
779 |
selectionIndex |
|
780 |
^ self selectionIndexHolder value |
|
781 |
! |
|
782 |
||
783 |
shownCopyOfBreakpointList |
|
784 |
shownCopyOfBreakpointList isNil ifTrue:[ |
|
8241 | 785 |
shownCopyOfBreakpointList := List new |
8233 | 786 |
]. |
787 |
^ shownCopyOfBreakpointList |
|
788 |
||
789 |
"Created: / 18-02-2007 / 12:53:01 / cg" |
|
790 |
! |
|
791 |
||
792 |
updatingLabelShown |
|
793 |
updatingLabelShown isNil ifTrue:[ |
|
8241 | 794 |
updatingLabelShown := true asValue |
8233 | 795 |
]. |
796 |
^ updatingLabelShown |
|
797 |
! ! |
|
798 |
||
799 |
!BreakpointBrowser methodsFor:'aspects'! |
|
800 |
||
801 |
enableAssertions |
|
802 |
^ (Smalltalk at:#IgnoreAssertion ifAbsent:false) not |
|
803 |
! |
|
804 |
||
805 |
enableAssertions:aBoolean |
|
806 |
^ Smalltalk at:#IgnoreAssertion put:aBoolean not |
|
807 |
! |
|
808 |
||
809 |
enableHalts |
|
9638 | 810 |
^ Smalltalk ignoreHalt not |
811 |
||
812 |
"Modified: / 18-11-2010 / 11:24:11 / cg" |
|
8233 | 813 |
! |
814 |
||
815 |
enableHalts:aBoolean |
|
9638 | 816 |
^ Smalltalk ignoreHalt:aBoolean not |
817 |
||
818 |
"Modified: / 18-11-2010 / 11:30:03 / cg" |
|
8233 | 819 |
! |
820 |
||
821 |
hasSelectionHolder |
|
822 |
^ BlockValue |
|
8241 | 823 |
with:[:selIndex | selIndex notNil and:[selIndex ~~ 0]] |
824 |
argument:self selectionIndexHolder |
|
8233 | 825 |
! |
826 |
||
8365 | 827 |
infoHolder |
828 |
infoHolder isNil ifTrue:[ |
|
829 |
infoHolder := nil asValue. |
|
830 |
]. |
|
831 |
^ infoHolder |
|
832 |
||
833 |
"Created: / 22-10-2006 / 02:00:41 / cg" |
|
834 |
! |
|
835 |
||
9079 | 836 |
selectedItemIsIgnoredHalt |
837 |
|entry info| |
|
838 |
||
839 |
entry := (self breakpointListEntryAtIndex:self selectionIndexHolder value). |
|
840 |
info := Debugger haltIgnoreInformationFor:(entry method) atLineNr:(entry lineNumber). |
|
841 |
^ info notNil and:[ info isHaltIgnored ]. |
|
842 |
! |
|
843 |
||
8233 | 844 |
selectionIndexHolder |
845 |
selectionIndexHolder isNil ifTrue:[ |
|
8241 | 846 |
selectionIndexHolder := nil asValue. |
847 |
selectionIndexHolder onChangeSend:#updateCode to:self |
|
8233 | 848 |
]. |
849 |
^ selectionIndexHolder |
|
850 |
||
851 |
"Created: / 22-10-2006 / 02:00:41 / cg" |
|
852 |
! |
|
853 |
||
854 |
showAssertions |
|
855 |
^ showAssertions ? true |
|
856 |
! |
|
857 |
||
858 |
showAssertions:aBoolean |
|
859 |
showAssertions := aBoolean. |
|
860 |
self updateShownBreakpointList |
|
861 |
! |
|
862 |
||
863 |
showCodeBreakpoints |
|
864 |
^ showCodeBreakpoints ? true |
|
865 |
! |
|
866 |
||
867 |
showCodeBreakpoints:aBoolean |
|
868 |
showCodeBreakpoints := aBoolean. |
|
869 |
self updateShownBreakpointList |
|
870 |
! |
|
871 |
||
9077 | 872 |
showDebugCode |
873 |
^ showDebugCode ? true |
|
874 |
! |
|
875 |
||
876 |
showDebugCode:aBoolean |
|
877 |
showDebugCode := aBoolean. |
|
878 |
self updateShownBreakpointList |
|
879 |
! |
|
880 |
||
8233 | 881 |
showHalts |
882 |
^ showHalts ? true |
|
883 |
! |
|
884 |
||
885 |
showHalts:aBoolean |
|
886 |
showHalts := aBoolean. |
|
887 |
self updateShownBreakpointList |
|
888 |
! |
|
889 |
||
12008
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
890 |
showLineBreakpoints |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
891 |
^ showLineBreakpoints ? true |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
892 |
! |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
893 |
|
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
894 |
showLineBreakpoints:aBoolean |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
895 |
showLineBreakpoints := aBoolean. |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
896 |
self updateShownBreakpointList |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
897 |
! |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
898 |
|
8233 | 899 |
showMethodBreakpoints |
900 |
^ showMethodBreakpoints ? true |
|
901 |
! |
|
902 |
||
903 |
showMethodBreakpoints:aBoolean |
|
904 |
showMethodBreakpoints := aBoolean. |
|
905 |
self updateShownBreakpointList |
|
9077 | 906 |
! |
907 |
||
908 |
showOthers |
|
909 |
^ showOthers ? true |
|
910 |
! |
|
911 |
||
912 |
showOthers:aBoolean |
|
913 |
showOthers := aBoolean. |
|
914 |
self updateShownBreakpointList |
|
915 |
! |
|
916 |
||
917 |
showWhichHaltsHolder |
|
918 |
showWhichHaltsHolder isNil ifTrue:[ |
|
919 |
showWhichHaltsHolder := #all asValue. |
|
920 |
showWhichHaltsHolder onChangeSend:#updateShownBreakpointList to:self |
|
921 |
]. |
|
922 |
^ showWhichHaltsHolder |
|
8233 | 923 |
! ! |
924 |
||
925 |
!BreakpointBrowser methodsFor:'change & update'! |
|
926 |
||
927 |
delayedUpdate:something with:aParameter from:changedObject |
|
9092 | 928 |
changedObject == Smalltalk ifTrue:[ |
929 |
something == #methodInClass ifTrue:[ |
|
930 |
self updateForClass:(aParameter first) selector:(aParameter second). |
|
931 |
^ self. |
|
932 |
]. |
|
933 |
something == #methodInClassRemoved ifTrue:[ |
|
934 |
self updateForClass:(aParameter first) selector:(aParameter second). |
|
935 |
^ self. |
|
936 |
]. |
|
937 |
something == #ignoredHalts ifTrue:[ |
|
938 |
self updateShownBreakpointList. |
|
939 |
^ self. |
|
940 |
]. |
|
941 |
]. |
|
8233 | 942 |
! |
943 |
||
944 |
filter |
|
9077 | 945 |
"filter those items which are to be shown from the complete list" |
946 |
||
947 |
|newList showWhichHalt| |
|
8233 | 948 |
|
949 |
newList := breakpointList. |
|
9077 | 950 |
|
951 |
self showOthers ifFalse:[ |
|
952 |
newList := newList reject:[:entry | entry isOther]. |
|
8233 | 953 |
]. |
9077 | 954 |
self showDebugCode ifFalse:[ |
955 |
newList := newList reject:[:entry | entry isDebugCode]. |
|
8233 | 956 |
]. |
957 |
self showMethodBreakpoints ifFalse:[ |
|
9077 | 958 |
newList := newList reject:[:entry | entry isMethodBreakpoint]. |
8233 | 959 |
]. |
12008
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
960 |
self showLineBreakpoints ifFalse:[ |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
961 |
newList := newList reject:[:entry | entry isLineBreakpoint]. |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
962 |
]. |
8233 | 963 |
self showAssertions ifFalse:[ |
9077 | 964 |
newList := newList reject:[:entry | entry isAssertion]. |
8233 | 965 |
]. |
9077 | 966 |
|
967 |
self showHalts ifFalse:[ |
|
968 |
newList := newList reject:[:entry | entry isHalt]. |
|
969 |
] ifTrue:[ |
|
970 |
showWhichHalt := showWhichHaltsHolder value. |
|
971 |
showWhichHalt ~~ #all ifTrue:[ |
|
972 |
newList := newList reject:[:entry | |
|
973 |
entry isHalt |
|
974 |
and:[ |
|
9079 | 975 |
|showInList isIgnored info| |
976 |
||
977 |
entry ignoredInfo:nil. |
|
9077 | 978 |
|
979 |
showInList := true. |
|
9079 | 980 |
info := Debugger haltIgnoreInformationFor:(entry method) atLineNr:(entry lineNumber). |
981 |
isIgnored := info notNil and:[ info isHaltIgnored ]. |
|
9077 | 982 |
showWhichHalt == #ignored ifTrue:[ |
9079 | 983 |
showInList := isIgnored. |
984 |
isIgnored ifTrue:[ entry ignoredInfo:info haltIgnoredInfoString ]. |
|
9077 | 985 |
] ifFalse:[ |
986 |
showInList := isIgnored not |
|
987 |
]. |
|
988 |
showInList not] |
|
989 |
]. |
|
990 |
]. |
|
991 |
]. |
|
992 |
||
993 |
self showCodeBreakpoints ifFalse:[ |
|
994 |
newList := newList reject:[:entry | entry isCodeBreakpoint]. |
|
995 |
] ifTrue:[ |
|
996 |
newList := newList reject:[:entry | |
|
997 |
|flag| |
|
998 |
||
999 |
flag := (showCodeBreakpointsFor at:(entry arg ? '<nil>') ifAbsentPut:[true asValue]) value. |
|
1000 |
entry isCodeBreakpoint |
|
1001 |
and:[ flag not ] |
|
1002 |
]. |
|
1003 |
]. |
|
1004 |
||
8233 | 1005 |
shownCopyOfBreakpointList contents:newList. |
1006 |
! |
|
1007 |
||
8365 | 1008 |
messageSelectors |
11744 | 1009 |
^ self messagesAndTypes collect:[:each | each first] as:Set. |
8365 | 1010 |
! |
1011 |
||
8233 | 1012 |
update:something with:aParameter from:changedObject |
8365 | 1013 |
changedObject == Smalltalk ifTrue:[ |
9092 | 1014 |
self enqueueDelayedUpdate:something with:aParameter from:changedObject. |
1015 |
^ self. |
|
8365 | 1016 |
]. |
8233 | 1017 |
! |
1018 |
||
1019 |
updateBreakpointList |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1020 |
|newShowCodeBreakpointsFor messages messageSelectors update | |
8233 | 1021 |
|
1022 |
breakpointList removeAll. |
|
1023 |
newShowCodeBreakpointsFor := Dictionary new. |
|
1024 |
||
8365 | 1025 |
messages := self messagesAndTypes. |
1026 |
messageSelectors := self messageSelectors. |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1027 |
|
8233 | 1028 |
update := [:cls :mthd :sel | |
8365 | 1029 |
self |
1030 |
withBreakpointListEntriesFor:mthd class:cls selector:sel |
|
1031 |
messages:messages |
|
1032 |
messageSelectors:messageSelectors |
|
1033 |
rememberingCodeBreakpointTypesIn:newShowCodeBreakpointsFor |
|
1034 |
do:[:newEntry | breakpointList add:newEntry ]. |
|
8233 | 1035 |
]. |
1036 |
||
1037 |
Smalltalk allClassesDo:[:cls | |
|
8302 | 1038 |
cls selectorsAndMethodsDo:[:sel :mthd | |
1039 |
update value:cls value:mthd value:sel |
|
1040 |
]. |
|
1041 |
cls class selectorsAndMethodsDo:[:sel :mthd | |
|
1042 |
update value:cls class value:mthd value:sel |
|
1043 |
]. |
|
8233 | 1044 |
]. |
1045 |
||
1046 |
showCodeBreakpointsFor := newShowCodeBreakpointsFor. |
|
1047 |
! |
|
1048 |
||
1049 |
updateCode |
|
8365 | 1050 |
|entry method class| |
8233 | 1051 |
|
1052 |
entry := self selectedBreakpointListEntry. |
|
1053 |
entry isNil ifTrue:[ |
|
8365 | 1054 |
codeView contents:nil. |
1055 |
^ self |
|
8233 | 1056 |
]. |
1057 |
method := entry method. |
|
1058 |
method isNil ifTrue:[ |
|
8365 | 1059 |
codeView contents:'OOPS - no source found'. |
8241 | 1060 |
] ifFalse:[ |
8365 | 1061 |
codeView contents:(method source). |
1062 |
entry lineNumber notNil ifTrue:[ |
|
1063 |
codeView cursorLine:entry lineNumber col:1. |
|
1064 |
codeView selectLine:entry lineNumber. |
|
9077 | 1065 |
] ifFalse:[ |
1066 |
self breakPoint:#cg. |
|
8365 | 1067 |
]. |
1068 |
codeView |
|
1069 |
acceptAction:[:newText | |
|
1070 |
class := method mclass ? (Smalltalk classNamed:entry className). |
|
1071 |
class |
|
1072 |
compilerClass |
|
1073 |
compile:newText asString |
|
1074 |
forClass:class |
|
1075 |
inCategory:method category |
|
1076 |
notifying:codeView. |
|
1077 |
] |
|
1078 |
]. |
|
1079 |
! |
|
1080 |
||
1081 |
updateEntry:entry |
|
1082 |
"after a change, update the list entry. |
|
1083 |
(or remove it if required)" |
|
1084 |
||
1085 |
|mthd cls sel newShowCodeBreakpointsFor any| |
|
1086 |
||
1087 |
newShowCodeBreakpointsFor := Dictionary new. |
|
1088 |
||
1089 |
breakpointList remove:entry ifAbsent:[]. |
|
1090 |
||
1091 |
mthd := entry method. |
|
1092 |
cls := Smalltalk classNamed:entry className. |
|
1093 |
sel := entry selector. |
|
1094 |
||
1095 |
any := false. |
|
1096 |
self |
|
1097 |
withBreakpointListEntriesFor:mthd class:cls selector:sel |
|
1098 |
messages:(self messagesAndTypes) |
|
1099 |
messageSelectors:(self messageSelectors) |
|
1100 |
rememberingCodeBreakpointTypesIn:newShowCodeBreakpointsFor |
|
1101 |
do:[:newEntry | |
|
1102 |
any := true. |
|
1103 |
breakpointList add:newEntry. |
|
1104 |
]. |
|
1105 |
! |
|
1106 |
||
1107 |
updateForClass:aClass selector:selector |
|
1108 |
|selectionIndexBefore mthd affectedEntries newShowCodeBreakpointsFor| |
|
1109 |
||
1110 |
selectionIndexBefore := selectionIndexHolder value. |
|
1111 |
||
1112 |
affectedEntries := breakpointList select:[:entry | |
|
1113 |
entry selector = selector |
|
1114 |
and:[ entry className = aClass name ] |
|
1115 |
]. |
|
1116 |
affectedEntries do:[:eachEntry | |
|
1117 |
breakpointList remove:eachEntry ifAbsent:[]. |
|
8233 | 1118 |
]. |
1119 |
||
8365 | 1120 |
mthd := aClass compiledMethodAt:selector. |
1121 |
mthd notNil ifTrue:[ |
|
1122 |
newShowCodeBreakpointsFor := Dictionary new. |
|
8233 | 1123 |
|
8365 | 1124 |
self |
1125 |
withBreakpointListEntriesFor:mthd class:aClass selector:selector |
|
1126 |
messages:(self messagesAndTypes) |
|
1127 |
messageSelectors:(self messageSelectors) |
|
1128 |
rememberingCodeBreakpointTypesIn:newShowCodeBreakpointsFor |
|
1129 |
do:[:newEntry | |
|
1130 |
breakpointList add:newEntry. |
|
1131 |
]. |
|
1132 |
]. |
|
8233 | 1133 |
|
8365 | 1134 |
self updateShownBreakpointList. |
1135 |
self selectionIndexHolder value:selectionIndexBefore. |
|
1136 |
self updateCode |
|
8233 | 1137 |
! |
1138 |
||
9077 | 1139 |
updateList |
1140 |
updateProcess notNil ifTrue:[^ self ]. |
|
1141 |
||
1142 |
self updatingLabelShown value:true. |
|
1143 |
"/ cg: mhmh why is this needed ???? |
|
1144 |
Delay waitForSeconds:0.1. |
|
1145 |
self windowGroup repairDamage. |
|
1146 |
||
1147 |
updateProcess := |
|
1148 |
[ |
|
1149 |
[ |
|
1150 |
ActivityNotification handle:[:ex | |
|
1151 |
self infoHolder value:ex errorString. |
|
1152 |
self windowGroup processExposeEvents. |
|
1153 |
ex proceed. |
|
1154 |
] do:[ |
|
1155 |
self updateBreakpointList. |
|
1156 |
self updateShownBreakpointList. |
|
1157 |
] |
|
1158 |
] ensure:[ |
|
1159 |
updateProcess := nil. |
|
1160 |
self updatingLabelShown value:false. |
|
1161 |
]. |
|
1162 |
] newProcess. |
|
1163 |
updateProcess resume. |
|
1164 |
! |
|
1165 |
||
8233 | 1166 |
updateShownBreakpointList |
1167 |
||
1168 |
self shownCopyOfBreakpointList contents:breakpointList. |
|
1169 |
self filter. |
|
1170 |
self resort. |
|
1171 |
||
1172 |
||
8365 | 1173 |
! |
1174 |
||
1175 |
withBreakpointListEntriesFor:mthd class:cls selector:sel |
|
1176 |
messages:messages |
|
1177 |
messageSelectors:messageSelectors |
|
1178 |
rememberingCodeBreakpointTypesIn:newShowCodeBreakpointsFor |
|
1179 |
do:aBlock |
|
1180 |
||
9077 | 1181 |
|entry type messagesSent showWhichHalt| |
1182 |
||
1183 |
showWhichHalt := self showWhichHaltsHolder value. |
|
8365 | 1184 |
|
1185 |
mthd isWrapped ifTrue:[ |
|
1186 |
mthd isBreakpointed ifTrue:[ |
|
1187 |
type := #trap |
|
1188 |
] ifFalse:[ |
|
1189 |
mthd isTraced ifTrue:[ |
|
1190 |
type := #trace |
|
1191 |
] ifFalse:[ |
|
1192 |
type := #probe |
|
1193 |
]. |
|
1194 |
]. |
|
1195 |
entry := BreakpointListEntry new. |
|
1196 |
entry |
|
1197 |
type:#wrap |
|
1198 |
arg:type |
|
1199 |
className:cls name |
|
1200 |
selector:sel |
|
1201 |
lineNumber:nil |
|
1202 |
info:nil |
|
1203 |
enabled:true. |
|
1204 |
aBlock value:entry |
|
1205 |
]. |
|
1206 |
||
12008
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1207 |
(mthd literalsDetect:[:lit | |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1208 |
(messageSelectors includes:lit) |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1209 |
or:[lit class == Breakpoint] |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1210 |
] ifNone:nil) notNil ifTrue:[ |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1211 |
messagesSent := mthd messagesSent. |
8365 | 1212 |
|
1213 |
messages pairsDo:[:bpSel :type| |
|
1214 |
|tree extractor| |
|
1215 |
||
1216 |
"/ used to be (mthd sends:bpSel); |
|
1217 |
"/ however, the sends requires an expensive parse of the methods source |
|
1218 |
"/ to fetch all message selectors. This should be done only once, |
|
1219 |
"/ and not for every selector we look for) |
|
1220 |
(messagesSent includesIdentical:bpSel) ifTrue:[ |
|
9077 | 1221 |
tree := RBParser |
1222 |
parseMethod:mthd source |
|
1223 |
onError:[:aString :pos | |
|
1224 |
('BreakPointBrowser [info]: error while parsing "%1": %2' |
|
1225 |
bindWith:mthd whoString with:aString) infoPrintCR. |
|
1226 |
nil |
|
1227 |
]. |
|
1228 |
||
8365 | 1229 |
tree isNil ifTrue:[ |
1230 |
entry := BreakpointListEntry new. |
|
1231 |
entry |
|
1232 |
type:type |
|
1233 |
arg:nil |
|
1234 |
className:cls name |
|
1235 |
selector:sel |
|
1236 |
lineNumber:nil |
|
1237 |
info:nil |
|
1238 |
enabled:true. |
|
1239 |
aBlock value:entry |
|
1240 |
] ifFalse:[ |
|
1241 |
extractor := MessageArgumentExtractor new. |
|
1242 |
extractor selectorToSearch:bpSel. |
|
9077 | 1243 |
extractor |
1244 |
callBack:[:lineNo :argument :infoMessage | |
|
1245 |
|showIt isIgnored| |
|
1246 |
||
1247 |
argument notNil ifTrue:[ |
|
1248 |
newShowCodeBreakpointsFor |
|
1249 |
at:argument |
|
1250 |
put:(showCodeBreakpointsFor |
|
1251 |
at:argument |
|
1252 |
ifAbsent:[true asValue]) |
|
1253 |
]. |
|
1254 |
entry := BreakpointListEntry new. |
|
1255 |
entry |
|
1256 |
type:type |
|
1257 |
arg:argument |
|
1258 |
className:cls name |
|
1259 |
selector:sel |
|
1260 |
lineNumber:lineNo |
|
1261 |
info:infoMessage |
|
1262 |
enabled:true. |
|
1263 |
||
1264 |
aBlock value:entry |
|
8365 | 1265 |
]. |
9077 | 1266 |
|
8365 | 1267 |
tree acceptVisitor:extractor. |
1268 |
] |
|
1269 |
]. |
|
1270 |
]. |
|
12008
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1271 |
|
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1272 |
mthd literalsDo:[:lit | |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1273 |
lit class == Breakpoint ifTrue:[ |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1274 |
entry := BreakpointListEntry new. |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1275 |
entry |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1276 |
type:#line |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1277 |
arg:nil |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1278 |
className:cls name |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1279 |
selector:sel |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1280 |
lineNumber:(lit line) |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1281 |
info:nil |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1282 |
enabled:true. |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1283 |
aBlock value:entry |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1284 |
] |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1285 |
]. |
8365 | 1286 |
]. |
8233 | 1287 |
! ! |
1288 |
||
1289 |
!BreakpointBrowser methodsFor:'initialization & release'! |
|
1290 |
||
1291 |
initialize |
|
1292 |
super initialize. |
|
1293 |
||
1294 |
showCodeBreakpointsFor := Dictionary new. |
|
1295 |
breakpointList := List new. |
|
1296 |
||
1297 |
currentSortColumn := #type. |
|
1298 |
currentSortIsReverse := false. |
|
8365 | 1299 |
|
1300 |
Smalltalk addDependent:self. |
|
8233 | 1301 |
! |
1302 |
||
1303 |
postBuildCodeView:aView |
|
1304 |
codeView := aView |
|
1305 |
! |
|
1306 |
||
1307 |
postOpenWith:aBuilder |
|
1308 |
super postOpenWith:aBuilder. |
|
1309 |
||
1310 |
self enqueueMessage:#updateList for:self arguments:#(). |
|
1311 |
||
1312 |
"Modified: / 18-02-2007 / 12:55:57 / cg" |
|
8365 | 1313 |
! |
1314 |
||
1315 |
release |
|
8767 | 1316 |
|p| |
1317 |
||
1318 |
(p := updateProcess) notNil ifTrue:[ |
|
1319 |
updateProcess := nil. |
|
1320 |
p terminate |
|
1321 |
]. |
|
8365 | 1322 |
Smalltalk removeDependent:self. |
1323 |
super release |
|
8233 | 1324 |
! ! |
1325 |
||
1326 |
!BreakpointBrowser methodsFor:'menu actions'! |
|
1327 |
||
1328 |
openDocumentation |
|
1329 |
HTMLDocumentView openFullOnDocumentationFile:'tools/misc/TOP.html#BREAKPOINTLIST'. |
|
1330 |
||
1331 |
"/ add application-specific help files under the 'doc/online/<language>/help/appName' |
|
1332 |
"/ directory, and open a viewer with: |
|
1333 |
"/ HTMLDocumentView openFullOnDocumentationFile:'help/<MyApplication>/TOP.html'. |
|
1334 |
! ! |
|
1335 |
||
1336 |
!BreakpointBrowser methodsFor:'menu actions-item'! |
|
1337 |
||
1338 |
browseItem |
|
8362 | 1339 |
self withWaitCursorDo:[ |
1340 |
(self breakpointListEntryAtIndex:self selectionIndexHolder value) browse |
|
1341 |
]. |
|
8233 | 1342 |
! |
1343 |
||
9079 | 1344 |
reenableHalt |
1345 |
|entry| |
|
1346 |
||
11211 | 1347 |
entry := self breakpointListEntryAtIndex:self selectionIndexHolder value. |
1348 |
Debugger |
|
1349 |
ignoreHaltIn:(entry method) |
|
1350 |
at:(entry lineNumber) |
|
1351 |
forCount:nil orTimeDuration:nil orUntilShiftKey:false. |
|
9079 | 1352 |
self updateShownBreakpointList |
11211 | 1353 |
|
1354 |
"Modified: / 27-01-2012 / 11:34:11 / cg" |
|
9079 | 1355 |
! |
1356 |
||
8233 | 1357 |
removeItem |
1358 |
breakpointList remove:(self selectedBreakpointListEntry) |
|
1359 |
||
1360 |
"Created: / 22-10-2006 / 10:45:52 / cg" |
|
1361 |
"Modified: / 18-02-2007 / 12:57:58 / cg" |
|
1362 |
! ! |
|
1363 |
||
1364 |
!BreakpointBrowser methodsFor:'menus-dynamic'! |
|
1365 |
||
1366 |
codeBreakpointMenu |
|
1367 |
<resource: #programMenu > |
|
1368 |
||
1369 |
|breakpointArgs menu| |
|
1370 |
||
1371 |
breakpointArgs := Set new. |
|
8241 | 1372 |
breakpointList |
8859 | 1373 |
select:[:entry | entry arg notNil] |
1374 |
thenDo:[:entry | breakpointArgs add:entry arg]. |
|
8233 | 1375 |
(breakpointList contains:[:entry | entry arg isNil]) ifTrue:[ |
8859 | 1376 |
breakpointArgs add:'<nil>'. |
8233 | 1377 |
]. |
1378 |
breakpointArgs := breakpointArgs asSortedCollection. |
|
1379 |
||
1380 |
menu := Menu new. |
|
8859 | 1381 |
menu addItem:( |
1382 |
MenuItem new |
|
1383 |
label:'Toggle All'; |
|
1384 |
translateLabel:true; |
|
1385 |
hideMenuOnActivated:false; |
|
11788 | 1386 |
itemValue:[ |
1387 |
showCodeBreakpointsFor do:[:each | |
|
1388 |
each value:(each value not) |
|
1389 |
] |
|
1390 |
]). |
|
8859 | 1391 |
menu addSeparator. |
8233 | 1392 |
|
8859 | 1393 |
breakpointArgs do:[:arg| |
1394 |
| menuItem | |
|
1395 |
||
1396 |
menuItem := MenuItem new. |
|
1397 |
menuItem label:arg. |
|
1398 |
menuItem translateLabel:false. |
|
1399 |
menuItem indication:(showCodeBreakpointsFor at:arg ifAbsentPut:[true asValue]). |
|
1400 |
menuItem hideMenuOnActivated:false. |
|
11788 | 1401 |
menuItem |
1402 |
itemValue:[:onOff | |
|
1403 |
(showCodeBreakpointsFor at:arg ifAbsentPut:[true asValue]) value:onOff. |
|
1404 |
self updateShownBreakpointList |
|
1405 |
]. |
|
8859 | 1406 |
menu addItem:menuItem. |
8233 | 1407 |
]. |
1408 |
menu findGuiResourcesIn:self. |
|
1409 |
^ menu |
|
1410 |
||
11788 | 1411 |
"Modified (format): / 09-09-2012 / 13:11:14 / cg" |
8233 | 1412 |
! |
1413 |
||
1414 |
enabledCodeBreakpointMenu |
|
1415 |
<resource: #programMenu > |
|
1416 |
||
1417 |
|breakpointArgs menu enabledCodeBreakpointHolders| |
|
1418 |
||
1419 |
enabledCodeBreakpointHolders := Dictionary new. |
|
1420 |
||
1421 |
breakpointArgs := Set new. |
|
8241 | 1422 |
breakpointList |
8858
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1423 |
select:[:entry | entry arg notNil] |
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1424 |
thenDo:[:entry | breakpointArgs add:entry arg]. |
8859 | 1425 |
|
8233 | 1426 |
(breakpointList contains:[:entry | entry arg isNil]) ifTrue:[ |
8858
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1427 |
breakpointArgs add:'<nil>'. |
8233 | 1428 |
]. |
1429 |
breakpointArgs := breakpointArgs asSortedCollection. |
|
1430 |
||
1431 |
menu := Menu new. |
|
8859 | 1432 |
menu addItem:( |
1433 |
MenuItem new |
|
1434 |
label:'Toggle All'; |
|
1435 |
translateLabel:true; |
|
1436 |
hideMenuOnActivated:false; |
|
11788 | 1437 |
itemValue:[ |
9614
1f2c844d482a
changed: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
9335
diff
changeset
|
1438 |
enabledCodeBreakpointHolders keysAndValuesDo:[:arg :each | |
1f2c844d482a
changed: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
9335
diff
changeset
|
1439 |
each value:(each value not). |
1f2c844d482a
changed: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
9335
diff
changeset
|
1440 |
each value ifTrue:[ |
1f2c844d482a
changed: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
9335
diff
changeset
|
1441 |
Object enableBreakPoint:arg |
1f2c844d482a
changed: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
9335
diff
changeset
|
1442 |
] ifFalse:[ |
1f2c844d482a
changed: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
9335
diff
changeset
|
1443 |
Object disableBreakPoint:arg |
1f2c844d482a
changed: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
9335
diff
changeset
|
1444 |
]. |
8859 | 1445 |
] |
1446 |
]). |
|
1447 |
menu addSeparator. |
|
1448 |
||
8241 | 1449 |
breakpointArgs do:[:arg| |
8858
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1450 |
| menuItem | |
8233 | 1451 |
|
8858
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1452 |
menuItem := MenuItem new. |
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1453 |
menuItem label:arg. |
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1454 |
menuItem translateLabel:false. |
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1455 |
menuItem indication:(enabledCodeBreakpointHolders at:arg ifAbsentPut:[ (Object isBreakPointEnabled:arg) asValue ]). |
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1456 |
menuItem hideMenuOnActivated:false. |
11788 | 1457 |
menuItem itemValue:[:onOff | |
8858
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1458 |
(enabledCodeBreakpointHolders at:arg ifAbsentPut:[(Object isBreakPointEnabled:arg) asValue]) value:onOff. |
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1459 |
onOff ifFalse:[ |
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1460 |
Object disableBreakPoint:arg |
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1461 |
] ifTrue:[ |
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1462 |
Object enableBreakPoint:arg |
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1463 |
]. |
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1464 |
]. |
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1465 |
menu addItem:menuItem. |
8233 | 1466 |
]. |
1467 |
menu findGuiResourcesIn:self. |
|
1468 |
^ menu |
|
1469 |
||
11788 | 1470 |
"Modified: / 09-09-2012 / 13:11:30 / cg" |
8233 | 1471 |
! ! |
1472 |
||
9077 | 1473 |
!BreakpointBrowser methodsFor:'tests'! |
1474 |
||
1475 |
aMethodWith_assert |
|
1476 |
"only here for demonstration purposes - should be found in the list" |
|
1477 |
||
1478 |
self assert:(3 > 4) |
|
1479 |
! |
|
1480 |
||
1481 |
aMethodWith_assert2 |
|
1482 |
"only here for demonstration purposes - should be found in the list" |
|
1483 |
||
1484 |
self assert:(3 > 4) message:'well - that ought to work' |
|
1485 |
! |
|
1486 |
||
1487 |
aMethodWith_breakPoint |
|
1488 |
"only here for demonstration purposes - should be found in the list" |
|
1489 |
||
1490 |
self breakPoint:#cg |
|
1491 |
! |
|
1492 |
||
1493 |
aMethodWith_breakPoint2 |
|
1494 |
"only here for demonstration purposes - should be found in the list" |
|
1495 |
||
1496 |
self breakPoint:#cg info:'hello there' |
|
1497 |
! |
|
1498 |
||
1499 |
aMethodWith_debugCode |
|
1500 |
"only here for demonstration purposes - should be found in the list" |
|
1501 |
||
1502 |
self |
|
1503 |
debuggingCodeFor:#cg |
|
1504 |
is:[ |
|
1505 |
self bla. |
|
1506 |
Transcript show:'some debug prints here' |
|
1507 |
]. |
|
1508 |
! |
|
1509 |
||
1510 |
aMethodWith_halt |
|
1511 |
"only here for demonstration purposes - should be found in the list" |
|
1512 |
||
1513 |
self halt |
|
9080
dca24ca8a31f
comment/format in: #aMethodWith_halt
Claus Gittinger <cg@exept.de>
parents:
9079
diff
changeset
|
1514 |
|
dca24ca8a31f
comment/format in: #aMethodWith_halt
Claus Gittinger <cg@exept.de>
parents:
9079
diff
changeset
|
1515 |
"after the first halt, in the debugger, ignore this halt for some time and see what |
dca24ca8a31f
comment/format in: #aMethodWith_halt
Claus Gittinger <cg@exept.de>
parents:
9079
diff
changeset
|
1516 |
the breakpoint browser shows... |
dca24ca8a31f
comment/format in: #aMethodWith_halt
Claus Gittinger <cg@exept.de>
parents:
9079
diff
changeset
|
1517 |
|
dca24ca8a31f
comment/format in: #aMethodWith_halt
Claus Gittinger <cg@exept.de>
parents:
9079
diff
changeset
|
1518 |
10 timesRepeat:[ |
dca24ca8a31f
comment/format in: #aMethodWith_halt
Claus Gittinger <cg@exept.de>
parents:
9079
diff
changeset
|
1519 |
self new aMethodWith_halt |
dca24ca8a31f
comment/format in: #aMethodWith_halt
Claus Gittinger <cg@exept.de>
parents:
9079
diff
changeset
|
1520 |
]. |
dca24ca8a31f
comment/format in: #aMethodWith_halt
Claus Gittinger <cg@exept.de>
parents:
9079
diff
changeset
|
1521 |
" |
9077 | 1522 |
! |
1523 |
||
1524 |
aMethodWith_halt2 |
|
1525 |
"only here for demonstration purposes - should be found in the list" |
|
1526 |
||
1527 |
self halt:'some message' |
|
1528 |
! |
|
1529 |
||
1530 |
aMethodWith_todo |
|
1531 |
"only here for demonstration purposes - should be found in the list" |
|
1532 |
||
1533 |
self todo |
|
1534 |
! ! |
|
1535 |
||
8233 | 1536 |
!BreakpointBrowser methodsFor:'user actions'! |
1537 |
||
1538 |
browseSelectedItem |
|
8362 | 1539 |
self withWaitCursorDo:[ |
1540 |
(self selectedBreakpointListEntry) browse |
|
1541 |
]. |
|
8233 | 1542 |
|
1543 |
"Created: / 22-10-2006 / 01:49:13 / cg" |
|
1544 |
"Modified: / 18-02-2007 / 12:56:30 / cg" |
|
1545 |
! |
|
1546 |
||
1547 |
itemDoubleClicked:itemIndex |
|
1548 |
self browseSelectedItem |
|
1549 |
||
1550 |
"Created: / 22-10-2006 / 01:49:13 / cg" |
|
1551 |
"Modified: / 18-02-2007 / 12:56:30 / cg" |
|
1552 |
! |
|
1553 |
||
1554 |
resort |
|
1555 |
|sortBlock sortBlock1| |
|
1556 |
||
1557 |
currentSortColumn isNil ifTrue:[^ self ]. |
|
1558 |
||
1559 |
sortBlock := sortBlock1 := [:a :b | |
|
8241 | 1560 |
|vA vB| |
8233 | 1561 |
|
8241 | 1562 |
vA := (a perform:currentSortColumn). |
1563 |
vB := (b perform:currentSortColumn). |
|
1564 |
vA = vB ifTrue:[ |
|
1565 |
currentSortColumn == #type ifTrue:[ |
|
1566 |
vA := a arg. |
|
1567 |
vB := b arg. |
|
1568 |
vA = vB ifTrue:[ |
|
1569 |
vA := a className. |
|
1570 |
vB := b className. |
|
1571 |
vA = vB ifTrue:[ |
|
1572 |
vA := a selector. |
|
1573 |
vB := b selector. |
|
1574 |
vA = vB ifTrue:[ |
|
1575 |
vA := a lineNumber. |
|
1576 |
vB := b lineNumber. |
|
1577 |
] |
|
1578 |
] |
|
1579 |
] |
|
1580 |
] |
|
1581 |
]. |
|
1582 |
(vA ? '') < (vB ? '') |
|
1583 |
]. |
|
8233 | 1584 |
|
1585 |
currentSortIsReverse ifTrue:[ |
|
8241 | 1586 |
sortBlock := [:a :b | (sortBlock1 value:a value:b) not ]. |
8233 | 1587 |
]. |
1588 |
||
1589 |
"/ temporary hack - should make a copy of the real list |
|
1590 |
self shownCopyOfBreakpointList sort:sortBlock |
|
1591 |
||
1592 |
"Created: / 25-10-2006 / 01:01:26 / cg" |
|
1593 |
"Modified: / 18-02-2007 / 13:02:19 / cg" |
|
1594 |
! |
|
1595 |
||
1596 |
sortBy:instanceName |
|
1597 |
self sortBy:instanceName withReverse:true |
|
1598 |
||
1599 |
"Created: / 25-10-2006 / 00:53:55 / cg" |
|
1600 |
! |
|
1601 |
||
1602 |
sortBy:instanceName withReverse:aBoolean |
|
1603 |
|aSymbol| |
|
1604 |
||
1605 |
aSymbol := instanceName asSymbol. |
|
1606 |
||
1607 |
currentSortColumn isNil ifTrue:[ |
|
8241 | 1608 |
currentSortColumn := aSymbol. |
1609 |
currentSortIsReverse := false. |
|
8233 | 1610 |
] ifFalse:[ |
8241 | 1611 |
currentSortColumn = aSymbol ifTrue:[ |
1612 |
"/ same column like before - change sort order ifReverse is true |
|
1613 |
aBoolean ifTrue:[ |
|
1614 |
currentSortIsReverse := currentSortIsReverse not. |
|
1615 |
]. |
|
1616 |
] ifFalse:[ |
|
1617 |
"/ another column - remark column |
|
1618 |
currentSortColumn := aSymbol. |
|
1619 |
] |
|
8233 | 1620 |
]. |
1621 |
self resort. |
|
1622 |
||
1623 |
"Created: / 25-10-2006 / 00:54:59 / cg" |
|
1624 |
! ! |
|
1625 |
||
1626 |
!BreakpointBrowser::BreakpointListEntry methodsFor:'accessing'! |
|
1627 |
||
1628 |
arg |
|
1629 |
^ arg |
|
1630 |
! |
|
1631 |
||
1632 |
className |
|
1633 |
^ className |
|
1634 |
! |
|
1635 |
||
1636 |
enabled |
|
1637 |
^ enabled |
|
1638 |
! |
|
1639 |
||
9079 | 1640 |
ignoredInfo |
1641 |
^ ignoredInfo |
|
1642 |
! |
|
1643 |
||
1644 |
ignoredInfo:something |
|
1645 |
ignoredInfo := something. |
|
1646 |
! |
|
1647 |
||
8233 | 1648 |
info |
9079 | 1649 |
^ ignoredInfo ? info |
8233 | 1650 |
! |
1651 |
||
1652 |
lineNumber |
|
1653 |
^ lineNumber |
|
1654 |
! |
|
1655 |
||
1656 |
selector |
|
1657 |
^ selector |
|
1658 |
! |
|
1659 |
||
1660 |
type |
|
1661 |
^ type |
|
1662 |
! |
|
1663 |
||
8241 | 1664 |
type:typeArg arg:argArg className:classNameArg selector:selectorArg lineNumber:lineNumberArg info:infoArg enabled:enabledArg |
8233 | 1665 |
type := typeArg. |
1666 |
arg := argArg. |
|
1667 |
className := classNameArg. |
|
1668 |
selector := selectorArg. |
|
1669 |
lineNumber := lineNumberArg. |
|
1670 |
info := infoArg. |
|
1671 |
enabled := enabledArg. |
|
1672 |
! ! |
|
1673 |
||
1674 |
!BreakpointBrowser::BreakpointListEntry methodsFor:'actions'! |
|
1675 |
||
1676 |
browse |
|
1677 |
|browser| |
|
1678 |
||
1679 |
browser := UserPreferences systemBrowserClass |
|
8241 | 1680 |
openInClass:(Smalltalk classNamed:className) selector:selector. |
8233 | 1681 |
|
1682 |
lineNumber notNil ifTrue:[ |
|
8241 | 1683 |
browser codeView cursorLine:lineNumber col:1. |
1684 |
browser codeView selectLine:lineNumber. |
|
8233 | 1685 |
]. |
1686 |
||
1687 |
! |
|
1688 |
||
1689 |
method |
|
1690 |
^ (Smalltalk classNamed:className) compiledMethodAt:selector. |
|
1691 |
! ! |
|
1692 |
||
1693 |
!BreakpointBrowser::BreakpointListEntry methodsFor:'testing'! |
|
1694 |
||
1695 |
isAssertion |
|
1696 |
^ type == #assertion |
|
1697 |
! |
|
1698 |
||
1699 |
isCodeBreakpoint |
|
8365 | 1700 |
^ type == #breakPoint |
8233 | 1701 |
! |
1702 |
||
9077 | 1703 |
isDebugCode |
1704 |
^ type == #debugCode |
|
1705 |
! |
|
1706 |
||
8233 | 1707 |
isHalt |
1708 |
^ type == #halt |
|
1709 |
! |
|
1710 |
||
12008
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1711 |
isLineBreakpoint |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1712 |
^ type == #line |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1713 |
! |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1714 |
|
8233 | 1715 |
isMethodBreakpoint |
1716 |
^ type == #wrap |
|
9077 | 1717 |
! |
1718 |
||
1719 |
isOther |
|
1720 |
^ type == #other |
|
8233 | 1721 |
! ! |
1722 |
||
1723 |
!BreakpointBrowser::MessageArgumentExtractor methodsFor:'accessing'! |
|
1724 |
||
1725 |
callBack:something |
|
1726 |
callBack := something. |
|
1727 |
! |
|
1728 |
||
1729 |
selectorToSearch:something |
|
1730 |
selectorToSearch := something. |
|
1731 |
! ! |
|
1732 |
||
1733 |
!BreakpointBrowser::MessageArgumentExtractor methodsFor:'visiting'! |
|
1734 |
||
1735 |
acceptMessageNode: aMessageNode |
|
1736 |
|arg1Node arg1 arg2Node arg2 argument infoMessage| |
|
1737 |
||
1738 |
aMessageNode selector == selectorToSearch ifTrue:[ |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1739 |
aMessageNode arguments size > 0 ifTrue:[ |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1740 |
arg1Node := aMessageNode arguments first. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1741 |
arg1Node isLiteral ifTrue:[ |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1742 |
arg1 := arg1Node value. |
8365 | 1743 |
] ifFalse:[ |
1744 |
arg1 := '(...)'. |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1745 |
]. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1746 |
aMessageNode arguments size > 1 ifTrue:[ |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1747 |
arg2Node := aMessageNode arguments second. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1748 |
arg2Node isLiteral ifTrue:[ |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1749 |
arg2 := arg2Node value. |
8365 | 1750 |
] ifFalse:[ |
1751 |
arg2 := '(...)'. |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1752 |
]. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1753 |
]. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1754 |
]. |
8233 | 1755 |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1756 |
selectorToSearch == #halt: ifTrue:[ |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1757 |
infoMessage := arg1. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1758 |
]. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1759 |
selectorToSearch == #breakPoint: ifTrue:[ |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1760 |
argument := arg1. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1761 |
]. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1762 |
selectorToSearch == #breakPoint:info: ifTrue:[ |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1763 |
argument := arg1. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1764 |
infoMessage := arg2. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1765 |
]. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1766 |
selectorToSearch == #debuggingCodeFor:is: ifTrue:[ |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1767 |
argument := arg1. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1768 |
]. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1769 |
selectorToSearch == #assert: ifTrue:[ |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1770 |
]. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1771 |
selectorToSearch == #assert:message: ifTrue:[ |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1772 |
infoMessage := arg2. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1773 |
]. |
8233 | 1774 |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1775 |
callBack |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1776 |
value:aMessageNode firstLineNumber |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1777 |
value:argument |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1778 |
value:infoMessage |
8233 | 1779 |
]. |
1780 |
super acceptMessageNode: aMessageNode |
|
1781 |
! ! |
|
1782 |
||
1783 |
!BreakpointBrowser class methodsFor:'documentation'! |
|
1784 |
||
1785 |
version |
|
12008
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1786 |
^ '$Header: /cvs/stx/stx/libtool/Tools__BreakpointBrowser.st,v 1.30 2012-11-03 16:31:18 cg Exp $' |
8858
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1787 |
! |
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1788 |
|
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1789 |
version_CVS |
12008
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1790 |
^ '$Header: /cvs/stx/stx/libtool/Tools__BreakpointBrowser.st,v 1.30 2012-11-03 16:31:18 cg Exp $' |
8233 | 1791 |
! ! |
9077 | 1792 |
|
1793 |
BreakpointBrowser initialize! |