Specifications
500
dreamweaver.debugDocument()
Availability
Dreamweaver 4
Description
Creates the debug version of the current document and opens it in the browser. This function can
be used with only one of the browsers for which Dreamweaver supports debugging (see
“dreamweaver.getDebugBrowserList()” on page 500). This function does not prompt the user if it
cannot determine the browser type. If syntax errors or warnings occur, a Results window opens
and displays the messages. If no errors occur, the debug version of the HTML document appears
in the specified browser. If warnings occur, but no errors, the Results window appears and
debugging begins.
The creation of the debug version is implemented with a call to
dom.instrumentDocument()
using one of the default instrumentation modules. The debug version of the document is
temporary and is deleted the next time the JavaScript Debugger starts or when Dreamweaver
exits.
Arguments
fileName, {browserName}
• fileName is the name of the file to be opened. It is expressed as an absolute URL.
• browserName is optional; it specifies the name of the target browser as defined in the Preview
settings in Browser Preferences. It can also be primary or secondary. If omitted, the primary
browser is used by default.
Returns
Nothing.
dreamweaver.getDebugBrowserList()
Availability
Dreamweaver 4
Description
Returns the defined browsers for which Dreamweaver supports JavaScript debugging. For
Windows, Dreamweaver supports debugging only in Internet Explorer 5.0 and later and
Netscape Navigator 4.5 and later. For the Macintosh, Dreamweaver supports debugging only in
Netscape Navigator 4.5 and later.
Arguments
None.
Returns
An array of browser names in the same format as the ones getBrowserList() returns.