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