User Guide

Results window functions 181
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:
For example:
<serverdebuginfo>
<context>
<template><![CDATA[/ooo/master.cfm]]></template>
<path><![CDATA[C:\server\wwwroot\ooo\master.cfm]]></path>
<timestamp><![CDATA[0:0:0.0]]></timestamp>
</context>
<debugnode>
<name><![CDATA[CGI]]></name>
<icon><![CDATA[ServerDebugOutput/ColdFusion/CGIVariables.gif]]></icon>
<debugnode>
<name><![CDATA[Pubs.name.sourceURL]]></name>
<icon><![CDATA[ServerDebugOutput/ColdFusion/Variable.gif]]></icon>
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
The following strings are optional:
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
000_DW_API_Print.book Page 181 Wednesday, August 20, 2003 9:14 AM