UserLand Software Home  |  Manila  |  Radio  |  Support  |  News

DocServer

Prev | Next | Script Verbs > script.setBreakpoint

script.setBreakpoint

Syntax script.setBreakpoint ()

Params None required

Action Changes the current line in the target script window to a breakpoint.

Returns True if the status of the line was changed, false if it was already a breakpoint.

Examples Open examples.counter. Select either executable line of UserTalk code in the script. Now type and execute the following line in the Quick Script window:
script.setBreakpoint ()

   » true

Notice that the breakpoint is set as evidenced by the small hand marker. You should return this line to its former state by choosing "Toggle Breakpoint" from the Script menu or by typing script.clearBreakpoint () into the Quick Script window and executing
it.

Notes Breakpoints are only in effect when a script is being run in Frontier's debugger. Scripts running normally are not affected by breakpoints.

This is an advanced Frontier verb of primary interest to implementers and advanced scripters. It is not necessary to understand it to use Frontier effectively for most tasks.

A breakpoint can be set manually by command-clicking on the statement's item marker.

See Also script.clearBreakpoint

script.getBreakpoint

Prev | Next | Script Verbs > script.setBreakpoint

Anonymization by Anonymouse.org ~ Adverts
Anonymouse better ad-free, faster and with encryption?
X