e)CI)8r1mental features,
sln1l1y
surnulCJ COde de811ng with tnose features with a test on _ When you CheCk off thls Item In the merlI, thatvan.able Is TRl£, ald your provisional COde Is e~ted. BecaI.se the
detUJ
Usa TooJKIl RehutJnce H8nJ8J TooJKIl Dea.gJer
menJS do. not ~ In ron-detlJg verslO'lS of ToolKit progl~ your
experimental
code C8'lnever
beexecuted In
ron-detlJgversions
Of your PlOQJam.When this optloo Is In effect, It Is checked off In the debJg meru. To disable this ~tlon, choose the meru Item a seco ld t1me.
5.2.7 Report GaItlage In Doa.ment Help
When you choose tnls ~Uoo, the deDlJger prints lnformaUon aboUt oojects In the oocunent
neap
to Whlcnhlr are ro
refelel ICeS. The information printedconsists Of the Object's r&ldle a'ld Class-type ... To determlne what COIIII80
caJSed
tile problem, tree tile garbage by us~ tile·Free
Garbage In DoCl.ment Heap option, a'ld tty out various application co I mn2S. InVOke the Report.Garbage In DoCl.ment Heap option after ecDl amlaK1 5.2..8 Free
GataJe
In DoaIYBlt. HaapWhen you choose tnls optlal, the detJUgger frees
an
oojects In the docu1lentneap
to WhICh tnere are no refeJeI.ces.
The oojects freed are the sane onesthat WOUld be Indicated by Report GaItIIge In DoaIYBlt. HBBp.
T1l1s COOI.am
onlyacts orr::e. To
flee garbagelater"
choosetre opUoo
again.-~9 Edit DIalog ' ..
This ft.rotloo Is only er&lled When
ere
of your 8A)llcation's dialog bOXeS Is displayed and the cumnt selection Is in tile dialog bOx. When you choosetills
COllI Ia
0, tile dialog bOxIs re-dlsplayed so
that eachseparate piece
Of the dialog has a sumJl.I'dng boX an:2 a UUe bar. You ( 3 l use tile roouse to grab Sly of the tlUe bars,am
rrove the piece aJ'Ol.n2 within the dialog .bOx.A size leon for the wtlole dialog bOX Is also dlsplaYf!(1, fR1 you ( 3 l use that to grow
or
ShIlA< the box.You can ctslge a'ly Of tile text that appears In the dialog box.
You carnot add elements to the dlalog bOx. All elements rrust be defined
wnenyou
create tile dlalog tJox..see
the docu1lentaUm a1 dialog boxeS (rot covered In tnls mcnJal) for more information.When you
are
Cble· editing the dialog bOx, choose _ EdIting DIalog from the debUg rTl8I'IJ. The eta gas you made to the· dialog bOx are stored wIth that docu1lent.5.2.10. _ EdIting [XsIog
ThIs ~t1oo Is only er&lled When a dialog boX Is dlsplaYf!(1, lRt you haVe ctoseI, EdIt D1a1og. It stops dialog bOx ed1~ See aosectlon 5.2.10 Edit Olalog for rrore tnformaticn
L/$8 ToolKit Refen!noe ~ ToolKit DetJUgger 53 The ~ [)eb.1JJB"
The ToolKltlnteractlve debugger all<NS you to stop ywr ToolKit progrCJ'n ana access a. ~ Of Interactive debUg f\rlcUons. You ca'l use tile lnter~tive
N3Caeak automatically switches the display to the alternate screen.
Ttte lnter~t1ve detlJgger
Is
also InVOked When a breakpointIs
reached. In tnatcase,
tile alternatescreen Is
automaUca11y displayed.SWltch1ng to tne alternate screen cDs rot affeCt the operatlm of a nmlng can find out lnformatlon abOUt Objects
am
methOdS. In particular, 8SSlI1llngyw
haVe used the BP and EP proceclJre calls to begin a'ld erKS all yourTDDIKII t:WJtgJer the trace. ·~tnlng In tne ToolKit enfOrceS level cmvenUons. t1M!Ver, the
fOllowt~ convenUons are ODserved by the ToolKit
am
the SSTllle prograns,cnj are recoR'meI ~
• 1, 2, a'ld 3
are
low level ToolKItrouttnes.
• 4, 5, lIld 6 are ~t nl~r level ToolKIt
routtnes.
• 7
am
8 are ma)lT ToolKit routines.• 9, 10, cn2 11 are bUIlding blOCk routines.
• 12 and n1~r are application routines.
You can also set levels In S'lCI trace the acUon of pfOCe(lBeS end tt.ncUons that are rot metnods.
use
IF and EP In tne sane.W8Y yru do wltn metnods.I'llte that, In general, pfOCe(lBeS S'lCI fUlCUon In the ToolKIt Ulat are not metnods 00 rot call IF and EP, and, theIefore, do rot shoW l4) In traces, cn2
camot be traced I-kJWeVer, there Is rottdng stopping you from using BP end
EP In yrur rm-metnod pfOCe(lBeS cn2 ftroUons.
Here Is a brtef Ust of Ule f\.reUons In the
meru.
1lley are deSCribed in more detall in the "osecUons Ulat follow ..• Brea<polnt allows yru to set breakpoints on tile entrance and exlt of a metnod, procet1Jre, or fUlCUon tnat
nas
IP Sld EP calls •. In addlUon, you ccn set a breakpoint onany
reference to 51 object of sane class. Notethat LlS8bUg
nas a
spearate breakpOint capabll1ty tnat CSlset a
breakpoint at tIlY lnst.r'l£Um Inmemory.
•
~removes
breakpointsset
witte tile ToolKlt debUgger.(LlsabUg . breakpOJnts are not affected.)
• DebJgStatus prints the current watch level
am
watchCOtJ'lt am
also Ilststhe current ToolKit deOlggel breakpoints.
• EnteILlsabug brt'9 you 1I.I,edlately lnto UsaD.Ig, making certain that the
8A>llcatlon's COde (and not system COde) Is nmlng.
• Go contlrues your prognm's executlcn
• PIOttJl tums the interactive meru display on or Off. It c:Joes not otherwise
affect the q»eratlon of U. debugger or your PlOQIaln.
• StadtCnIwl stows the call secpnJe currenUy In effeCt,. all the way back
to your main proonm It Is slmllar to tne sc com naI 0 Is Llsab Ig.
• F~ prints out InformaUon about one of the stack fnmes displayed
~y StackCrawL
• Inspecta»jBCt prints lnfonnaUon about 8lY Clasca1 object currenUy used by your prognm.
Uss ToolKIt ReftJn!nce MInIsI
• MeITIQ DJ"I1) dlsplays
a portion
of meroory.ThIs
ftmUon WOrks like LlsabUg's CM corrmer d.see
the debUgger Chapter of the Workst'q) rT81.I8lfor roore lnformaUoo.
• Lev8lsTowatd'l sets the mlnlrrun level routlne that