beautypg.com

Adobe Dreamweaver API Reference CS5 User Manual

Page 157

background image

152

DREAMWEAVER API REFERENCE

Workspace

Last updated 8/27/2013

Additionally, the Server Debug panel can display debug data from other server models. To set up Dreamweaver to
debug other server models, use the

dreamweaver.resultsPalette.debugWindow.addDebugContextData()

function.

dreamweaver.resultsPalette.debugWindow.addDebugContextData()

Availability
Dreamweaver MX.

Description
Interprets a customized XML file that returns from the server that is specified in the Site Definition dialog box. The
contents of the XML file display as tree data in the Server Debug panel, so you can use the Server Debug panel to
evaluate server-generated content from various server models.

Arguments
treedata

The treedata argument is the XML string that the server returns. The XML string should use the following
formatting:

The following strings are optional:

For example:

server debug node

Root node for the debug XML data

debugnode

Corresponds to every node

context

Name of item that appears in the context list

icon

Icon to use for tree node

name

Name to display

value

Value to display

timestamp

Only applicable to context node

jumptoline

Link to a specific line number

template

Name of the template file part of the URL

path

Path of the file from server point of view

line number

Line number within the file

start position

Opening character offset within the line

end position

Ending character offset within the line