Specifications

Chapter 20248
getStepInstrument()
Availability
Dreamweaver 4
Description
Called for each statement that is parsed inside a block. A call is always made to StartBlock()
before this function is called. Dreamweaver records each line for which it calls this function as a
valid breakpoint line. When the debugger starts, all breakpoints are moved to valid breakpoint
lines.
Arguments
lineNumber, offset, bisInFuncton
lineNumber is the line number of the next statement that is relative to the start of the block
(1-based index).
offset is the offset of the first character of the next statement that is relative to the start of the
block (0-based index).
bisInFunction is a Boolean value that indicates if the step is in a function definition (true)
or in the global scope (
false).
Returns
Dreamweaver expects a string that contains the JavaScript code to insert before the statement.
reportError()
Availability
Dreamweaver 4
Description
Called when a syntax error is detected. The errors and warnings are not necessarily reported in
order.
Arguments
FileURL, fileName, errorNumber, strDesc, lineNumber, offset
fileURL is the full path name of the report file, expressed as a file://URL, of the file containing
the error.
fileName is the name of the file.
errorNumber is the numeric identifier of the error that occurred.
strDesc is the description of the error.
lineNumber is the line number in which the error occurred, relative to the start of the block.
offset is the offset of the character at which the error occurred, relative to the start of the
block.
Returns
Nothing.