Specifications
499
Arguments
debuggerModule, outputFileName
• debuggerModule is the name of a special Dreamweaver module file that implements the
instrumentation API. The module is located in the Configuration/Debugger folder of the
Dreamweaver Program Files directory.
• outputFileName is optional; it is the name to use for the debug version of the .htm file. If it is
omitted, a temporary file is created. The temporary file is deleted when Dreamweaver exits. If
the specified
outputFileName exists, the existing file is replaced. The file is always written in
the same directory as the source document, so it cannot have the same name as the source
document. If a path is specified, it is ignored. The debug version of externally referenced .js
files is named by adding
outputFileName to the beginning of the original filename of the .js
file.
Returns
An array of file URL pairs. Each pair consists of the URL of the original source file, followed by
the URL of the debug version that this function created. The first pair is always the .htm file and
any subsequent entries are .js files that are referenced by the .htm file. If the function fails,
null is
returned. A pair of URLs is actually two entries in the array. So, if
returnValue =
dom.instrumentDocument(test.htm)
, then returnValue[0] is the URL of test.htm and
returnValue[1] is the URL of the debug version of test.htm.
dom.setBreakpoint()
Availability
Dreamweaver MX
Description
Sets or removes a breakpoint (the place in the JavaScript code at which the JavaScript Debugger
stops executing the program) on a line in the document.
Arguments
lineNumber, bTurnOn
lineNumber
is an integer that represents the line number in the document on which to set or
remove the breakpoint.
bTurnOn is a Boolean value that indicates whether the breakpoint should be set on (true) or off
(
false).
Returns
Nothing.