SublimeTextXdebug
SublimeTextXdebug copied to clipboard
Why don't I see my local variables in drupal?
Hi!
I'm new to this and trying to understand how this works. I would appreciate any help in this matter.
The problem for me is that I can't see the local variables in the "context window" in my drupal site.
As you can see in the image my variable $foo is not showing up in the "context window" . Why? If I set it as a Watch expression I can see it.
If I do my own "test.php" in the root of the drupal site it looks like this.
Here I can see all the local variables in the "context window".
My set up: ST3 build 3059. MAMP 3.0.5
Settings: { "folders": [ { "follow_symlinks": true, "path": "." } ], "settings": { "xdebug": { "path_mapping": { //"/Users/thomas/Sites/thoktest" : "/Users/thomas/Sites/thoktest" }, "url": "http://localhost/thoktest", "pretty_output": false, "max_depth": 10, } } }
"path_mapping" remmed out here, but makes no difference.
xdebug php.ini settings: [xdebug] zend_extension="/Applications/MAMP/bin/php/php5.5.10/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so" xdebug.default_enable=1
xdebug.remote_enable=1 xdebug.remote_host=localhost xdebug.remote_port=9000 xdebug.remote_handler=dbgp xdebug.remote_log="/Applications/MAMP/logs/xdebug.log"
xdebug version = 2.2.5
php version in MAMP = 5.5.10
Hope you can help, and explain this to me.
Love the plugin!
Regards, /Thomas
Hej Thomas. It seems like a bug in the debugger rather than the plugin. Xdebug has had issues similar to that in the past (http://stackoverflow.com/questions/3473437/netbeans-xdebug-works-but-wont-expose-some-php-variables#comment3700155_3513026). Sorry but I can't provide much more help than that.
Have you tried a different version? http://xdebug.org/updates.php :)