How to view the meaning of long lines using NetBeans and x-debug?

Is there an option for x-debug or NetBeans to extend the maximum row size that will be displayed?

Using NetBeans to debug a PHP application on Windows, I can add a clock or hover over any variable to see its value. But for long strings, all I get is a (string), with no value.

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 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 
+6
source share
3 answers

Setting xdebug.var_display_max_data to -1 seems to fix the problem. Hope this helps someone else.

+2
source

Edit xdebug.var_display_max_data . The default value is 512 , so press to the desired length.

+2
source

Even if your string constraints are in xdebug order, you can still have problems with netbeans.

To do this, go to the Options -> PHP -> Debugging tab in netbeans and set the Maximum Data Length to a large number, for example, 100000 (I think -1 should work here too).

(Tip from https://netbeans.org/bugzilla/show_bug.cgi?id=215728#c6 )

+2
source

Source: https://habr.com/ru/post/904508/


All Articles