NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Viewing an Object


Joined: 03 May 2005
Posts: 3
Reply with quote
Hi All,

I'm trying to debug a PHP page that is dealing with DOMDocument objects. Debugging through them shows that the variable exists and the type (Object(DOMDocument)) is correct. However I was hoping to look at some of the properties within the object. Is it possible to do that with the debugger? If not, can someone suggest an alternative method?

Thanks in advance

Tyndyll
View user's profileFind all posts by tyndyllSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8113
Reply with quote
DomDocument objects are hardcoded into corresponding php extension. They are exposing only properties that are also hardcoded there (mostly nothing). To inspect the objects, you may try to use object's own methods. For example, say you have an instance of DOMCharacterData in varable $v. Then you can put $v->substringData(0, 100) into the Watches.
If you work with hardcoded objects that support reflection API, you may use corresponding interfaces to inspect values in the Watches window.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Viewing an Object
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic