如何使用NetBeans和x-debug查看长字符串的值? [英] How to view value of long strings using NetBeans and x-debug?
问题描述
是否存在x-debug或NetBeans的设置以扩展它将显示的最大字符串大小?
Is there a setting for x-debug or NetBeans to extend the maximum string size it will display?
使用NetBeans在Windows中调试PHP应用程序,我可以添加监视或将鼠标悬停在任何变量上以查看其值.但是对于长字符串,我得到的只是(字符串),没有值.
Using NetBeans to debug PHP application in Windows, I can add a watch or hover over any variable to see its value. But for long strings, all I get is (string), no value.
环境: Windows 7,NetBeans 7.0.1,x-debug 2.0.3-5.1.7,Apache 2.0.63,PHP 5.1.6
Environment: Windows 7, NetBeans 7.0.1, x-debug 2.0.3-5.1.7, Apache 2.0.63, PHP 5.1.6
php.ini包含:
php.ini contains:
zend_extension_ts = c:\wamp\bin\php\php5.1.6\ext\php_xdebug-2.0.3-5.1.7.dll
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.var_display_max_data=2048
推荐答案
将xdebug.var_display_max_data设置为-1似乎已解决了该问题.希望这对其他人有帮助.
Setting xdebug.var_display_max_data to -1 seems to have fixed the problem. Hope this helps someone else.
这篇关于如何使用NetBeans和x-debug查看长字符串的值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!