Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ccyeh0901 opened this issue Dec 20, 2015 · 6 comments
Open

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

ccyeh0901 opened this issue Dec 20, 2015 · 6 comments

Comments

@ccyeh0901
Copy link

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.

@ccyeh0901 ccyeh0901 changed the title "max_depth" more than 2 cause xml.etree.ElementTree.ParseError Xdebug Context show nothing when "max_depth" more than 2. Dec 21, 2015
@slifin
Copy link

slifin commented Jul 26, 2016

Can also confirm this bug on ubuntu ST3

@petervansark
Copy link

I have the same issue on ST3 Windows

@holt83
Copy link

holt83 commented Feb 9, 2018

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
Copy link

It's 2018 and this is still a problem

@mercurykd
Copy link

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
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants