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