martomo / SublimeTextXdebug

Xdebug debugger client for Sublime Text
MIT License
564 stars 89 forks source link

Xdebug Context show nothing when "max_depth" more than 2. #156

Open ccyeh0901 opened 8 years ago

ccyeh0901 commented 8 years ago

Hello, when I set the max_depth value bigger than 2, the console shows xml.etree.ElementTree.ParseError. I've reviewed the #77 issue and updated the python code but no work. my problem encountered is a little bit different. When I adjust the max_depth value bigger than 2 ( ex:3, 4, 5....), the Xdebug Context show blank, but the Xdebug Watch Window shows correctly which I can see everything. The xml.etree.ElementTree.ParseError shown in console only occurs when I set the max_depth more than 2 ( ex: 3, 4, 5....), when max_depth is lower than 2, everything is ok. That means I can't inspect the variables more than second level (help:~~~). The only way I can inspect variable more than depth level 2 is using Xdebug Watch. (Thanks God, but it still not so convenient.)

2015-12-21 11 21 48 2015-12-21 11 21 56

Below are the error message collected and info of my environment: console error message shown:

Exception in thread Thread-519: Traceback (most recent call last): File "./threading.py", line 901, in _bootstrap_inner File "/Users/ccyeh0901/Library/Application Support/Sublime Text 3/Packages/SublimeTextXdebug-master/xdebug/session.py", line 148, in run self.execute(self.get_option('command')) File "/Users/ccyeh0901/Library/Application Support/Sublime Text 3/Packages/SublimeTextXdebug-master/xdebug/session.py", line 242, in execute context = self.get_context_values() File "/Users/ccyeh0901/Library/Application Support/Sublime Text 3/Packages/SublimeTextXdebug-master/xdebug/session.py", line 279, in get_context_values response = S.SESSION.read() File "/Users/ccyeh0901/Library/Application Support/Sublime Text 3/Packages/SublimeTextXdebug-master/xdebug/protocol.py", line 191, in read document = ET.fromstring(data) File "./xml/etree/ElementTree.py", line 1356, in XML File "", line None xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 2, column 173624

Xdebug.sublime.-settings

"url": "http://localhost/",
"launch_browser": true,
"max_children": 256,
"port": 9001,
"max_data": 4096,
"max_depth": 5,
"close_on_stop": true,
"pretty_output": true,
"disable_layout": true,
"debug": false,

[xdebug] zend_extension="/Applications/MAMP/bin/php/php5.6.10/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so" xdebug.remote_enable = 1 xdebug.remote_host=127.0.0.1 xdebug.remote_port = 9001 xdebug.remote_handler = "dbgp" xdebug.remote_log = "/var/log/xdebug/xdebug.log"


OS: OSX EI Captain editor: sublime text 3

Really appreciate this plugin which makes programer work faster. Please give me a hand to solve this bug. Thanks a ton.

slifin commented 8 years ago

Can also confirm this bug on ubuntu ST3

petervansark commented 7 years ago

I have the same issue on ST3 Windows

holt83 commented 6 years ago

I'm experiencing this problem too on ST3 - both on Windows and Ubuntu. I'm fairly certain it has something to do with character encoding.

Just tested with a variable and as soon as I removed the character 'å' from the variable I could see the context again with max_depth > 2.

BigsonLvrocha commented 6 years ago

It's 2018 and this is still a problem

mercurykd commented 6 years ago

When I set max_depth> 10, xdebug (server) to the command context_get -c 0 is just silent, apparently this is not a plug-in fault.

mercurykd commented 6 years ago

https://bugs.xdebug.org/view.php?id=1569