2022.2

Table Of Contents
WhentheFindfieldisnotvisible,youcanpressF3/Shift+F3togotothenextorpreviouscodethat
matchesyourlastsearchtext.
Tip: Whenyouclickonanidentifier(suchasavariablename)inascript,theoverviewrulerat
therighthighlightsallotheroccurrencesofthatidentifierstraightaway.
Variables
AtthebottomrighttheScriptDebuggershowsahierarchicaloverviewofallvariablesinthescope
chainandtheirstate.Thisinformationisalwaysrelativetothecurrentstackframe,whichistheone
that'sselectedontheleft.
Theoverviewincludesthespecialentry"(this)",whichrepresentstheJavaScript"this"object.
IfthecurrentscriptisnotaControlScript,theoverviewalsoincludesthespecialentry"(resource)".
Whenexpanded,thisentryshowstheHTMLofthecurrentMasterPageorsection,allowingyoutosee
exactlyhoweachlineinthescriptaffectstheDOM.
UsetheCopybutton(orpressCtrl+C)tocopythelabelandcontentsoftheselectedvariableandallof
itschildrentotheclipboard.
Expressions
Youcanaddcustomexpressionsatthetopofthelistofvariables.Thisisespeciallyusefulwhenyou
wanttomonitorthevalueofavariablethatissituatedatalowerlevelinthehierarchy.Forexample,if
you'dwanttodirectlyseetheheightofthetopmarginofasectionasyoustepthroughthecode,you
couldaddthefollowingexpression:merge.section.margins.top.
Expressionscanincludefunctioncalls.Forexample,youcouldmonitortheheightofanelementthat
hastheIDmy_divwiththeexpression:query("#my_div").height().Notethatthequeryinthis
examplewillbelimitedtothecurrentresource(MasterPageorsection).
Youcouldalsochangethevalueofavariablethroughanexpressiontoseehowthataffectsthedoc-
ument.Let'ssupposeexecutionissuspendedbeforeanif-statement:if (foo == 3).Iffooisnot
equalto3,butyou'dstillliketoseewhatwouldhappenifitwere,youcouldaddtheexpressionfoo =
3.
Expressionsareevaluatedautomaticallywhenexecutionissuspended.
l
TheAddbuttonletsyouaddanexpressiontotheoverview.Expressionsmustbeuniqueandcan-
notbeempty;emptyexpressionswillberemoved.
l
Toeditanexistingexpression,justclicktheentry.
l
TheDeletebuttonremovestheselectedexpression.
Page 917