NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
View object methods


Joined: 27 Nov 2009
Posts: 98
Reply with quote
Often when debugging, I wish to view a given object's methods. How is this accomplished? Can I filter and show all methods and just public methods? Thank you
View user's profileFind all posts by NotionCommotionSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
Normally programmers want to see methods and the other class members while coding. There is Code Completion popup for that. Also you can try Code Explorer / Code Navigator windows. They all are available while debugging too. Note that the info about method and properties is extracted and maintained by php parser embedded in the IDE. If you want to see run-time members of your objects, you can use run-time helpers -- get_class_methods("class_name"), get_class_vars("class_name") and get_object_vars($myobj), or something like (new ReflectionClass("myclass"))->getConstants(). You can invoke such functions / expressions in the Immediate window while debugging

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
View object methods
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