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