Specifications
498
JavaScript debugger functions
These commands customize the behavior of the Dreamweaver JavaScript Debugger. For more
information about the Dreamweaver JavaScript Debugger, see “JavaScript Debugger Modules” on
page 243.
dom.getBreakpoint()
Availability
Dreamweaver MX
Description
Queries to see if a breakpoint (the place in the JavaScript code at which the JavaScript Debugger
stops executing the program) is set on a particular line in the document.
Arguments
lineNumber
lineNumber
is an integer that represents the line number in the document to examine.
Returns
A Boolean value that indicates whether a breakpoint is set (true) or not (false).
dom.getLineFromOffset()
Availability
Dreamweaver MX
Description
Finds the line number of a specific character offset in the text (the HTML or JavaScript code) of
the file.
Arguments
offset
offset
is an integer that represents the character location from the beginning of the file.
Returns
An integer that represents the line number in the document.
dom.instrumentDocument ()
Availability
Dreamweaver 4
Description
Creates the debug version of the document and any external .js files that it references. This
function parses the JavaScript in the document and calls the
debuggerModule for code snippets
to insert at various points in the JavaScript file. The
debuggerModule is also notified of syntax
errors and warnings. This function fails under any of the following conditions: syntax errors, a file
error, or the document cannot be debugged for some reason. Temporary files are never deleted
immediately, even if the function fails.