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

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

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

html - jQuery UI Sortable - Remove placeholder after item is dropped -