-
Notifications
You must be signed in to change notification settings - Fork 263
Debugging the DOM with Visual Studio
The DomNode
class has the _DebugInfo
property that gathers information about the node's contents and formats it so the information is easier to access. The illustration shows this property for a DomNode
:
Note that the value of the DomNode
itself (this
) shows a hash code along with the node's DomNodeType
. Hash codes are the equivalent of unique IDs for the current debugging session; they are unique to the AppDomain
, the application domain that is an isolated environment where applications execute.
The _DebugInfo
property contains several categories of information, shown in the figure. You can also open nodes under _DebugInfo
in the debugger to get more information on the displayed data.
You can find out what objects subscribe to any of the six DomNode
events listed under _DebugInfo
:
-
AttributeChanged
underAttributeChangedListeners
. -
AttributeChanging
underAttributeChangingListeners
-
ChildInserted
underChildInsertedListeners
-
ChildInserting
underChildInsertingListeners
-
ChildRemoved
underChildRemovedListeners
-
ChildRemoving
underChildRemovingListeners
ChildInsertingListeners
node shows one listener, which is the DOM adapter MasteringValidator
. Opening the listener node reveals the method called when the event occurs and the Target, which is the listener itself.
The Attributes
node lists all the attributes' names and values:
-
AttributeInfo
's string value for the name. -
GetAttribute()
's string value for the value.
The Children
node displays the DomNode
children's names and values, if any:
-
ChildInfo
's string value for the name. - Child
DomNode
's string value for the value.
All extensions defined for the DomNode
's type are also listed, including their count, as shown in this figure:
The value has three parts:
- The extension name, which is nearly always a DOM adapter.
- The HashCode of the
DomNode
. - The
DomNodeType
of theDomNode
.
The information under _DebugInfo
is provided by creating new classes in DomNode
and marking these classes with special attributes. You can use these techniques to enhance the display of your own classes and data. For details, see Visual Studio Debugger Display Attributes and Other Features.
Development, Debugging, and Testing
-
Debugging the DOM with Visual Studio: Shows how to get
DomNode
information to help you debugging a DOM. - Visual Studio Debugger Display Attributes and Other Features: Learn about enhancing debugging in Visual Studio by using debugger display attributes and other facilities in C#.
- Using DomExplorer: Tells about a component you can use to visualize the contents of a DOM node tree.
-
Using the DomRecorder Component: Discusses the
DomRecorder
and the DOM events it records and shows an example. - General ATF Scripting Support: Explains ATF's facilities to script applications, accessing C# objects in application classes.
-
Scripting Applications with Python: Shows how to use the
BasicPythonService
andPythonService
components to script an ATF application. - ATF Test Code: Discusses the classes to facilitate writing tests for ATF-based applications as well as ATF test code.
- Writing Python Scripts for ATF Applications: Shows how to write Python scripts for ATF applications, using existing examples.
- Home
- Getting Started
- Features & Benefits
- Requirements & Dependencies
- Gallery
- Technology & Samples
- Adoption
- News
- Release Notes
- ATF Community
- Searching Documentation
- Using Documentation
- Videos
- Tutorials
- How To
- Programmer's Guide
- Reference
- Code Samples
- Documentation Files
© 2014-2015, Sony Computer Entertainment America LLC