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