simplexml - Eclipse xdebug inspect SimpleXMLElement -


i'm using xdebug , eclipse. when load valid xml string simplexml_load_string this:

$responsexml = simplexml_load_string($response); 

i can't seem inspect simplexmlelement variables. when drill down variable, nothing shows. in screenshot below, try drill down $responsexml nothing shows:

eclipse debugger variables tab

i can access variable know there:

$body = $responsexml->children('soap-env')->body; 

below xdebug settings.

xdebug settings

any ideas?

that's because simplexmlelement has internal serialization methods. print_r , var_dump produce same. best way debug convert string using:

$responsexml->asxml() 

Comments

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -