xdebug

Dump all variables in PHP

核能气质少年 提交于 2020-01-05 08:53:45
问题 There's a memory leak in my script and I couldn't find it after 2 days. I found the loop that is causing the memory leak; each iteration of the loop increases the memory usage. I moved the loop into a function to isolate the variables. At the end of the function, I unsetted every variable created by the function so that get_defined_vars() returns an empty array. Here's what I mean: function the_loop(){ $var="value"; ... // processing, including using a library unset($var); print_r(get_defined

Eclipse PDT, XDebug Variable Watch Details only shows 1000 characters

陌路散爱 提交于 2020-01-05 08:42:19
问题 I am debugging using Eclipse PDT with XAMPP This question is related to this item: Variables viewer on Eclipse debugging truncates the string values I am having the same problem as in that link. I watch a variable and in the Expresssions tab, I can only view about 1000 characters in the "details" window. If I right click and use 'copy expressions' I get the same 1000 chars. I have also right clicked the details pane... Max Length and tried setting it to 0 or 30000 (my data is about 20k) and

Eclipse PDT, XDebug Variable Watch Details only shows 1000 characters

佐手、 提交于 2020-01-05 08:41:17
问题 I am debugging using Eclipse PDT with XAMPP This question is related to this item: Variables viewer on Eclipse debugging truncates the string values I am having the same problem as in that link. I watch a variable and in the Expresssions tab, I can only view about 1000 characters in the "details" window. If I right click and use 'copy expressions' I get the same 1000 chars. I have also right clicked the details pane... Max Length and tried setting it to 0 or 30000 (my data is about 20k) and

PhpStorm - Xdebug, Waiting for incoming connection idekey

只谈情不闲聊 提交于 2020-01-05 08:00:52
问题 I've searched a lot for this problem when debugging php using PhpStorm 2016.3 with xdebug, but still not working with error "Waiting for incoming connection idekey xxx". php.ini PhpInfo Debug Settings Server Config And Run Config I have already enabled the "Listening for PHP debug connections". Any help highly appreciated, thanks all ! 来源: https://stackoverflow.com/questions/40668606/phpstorm-xdebug-waiting-for-incoming-connection-idekey

why xdebug doesn't work in apache

浪子不回头ぞ 提交于 2020-01-05 04:17:05
问题 /var/www/html/index.php <?php echo 'a'; echo 'a'; when index.php is execute in cli mode as below $ php /var/www/html/index.php xdebug worked fine However, when execute by apache like $ curl 'http://localhost:80?XDEBUG_SESSION_START=1' aa nothing happened to xdebug. Below is the error log of apache, nothing special 1 [Fri Jun 17 05:02:15.526773 2016] [mpm_prefork:notice] [pid 30840] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.17 configured -- resuming normal operations │ qualified domain

Xdebug bad Zend API Version Number

旧街凉风 提交于 2020-01-04 12:48:06
问题 I am having trouble upgrading xdebug for MAMP. I was running version 2.2.0 and there was a known issue that I ran into: PhpStorm and Xdebug not breaking in Symfony2 Controller I tried to upgrade to version 2.2.3 by following the instructions from http://xdebug.org/wizard.php After downloading and extracting the xdebug tar I ran /Applications/MAMP/bin/php/php5.4.4/bin/phpize Here is the output: Configuring for: PHP Api Version: 20100412 Zend Module Api No: 20100525 Zend Extension Api No:

Xdebug can't connect back to Docker host

我怕爱的太早我们不能终老 提交于 2020-01-03 21:13:33
问题 I've just setup Docker on my machine & have an Nginx/PHP7 (FPM)/MySQL setup all working fine, but having installed Xdebug on the PHP container I can't get it to connect back to PHPStorm on my host machine. Here's my PHP Xdebug config… zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts- 20151012/xdebug.so xdebug.remote_log=/usr/local/var/log/xdebug.log xdebug.remote_enable=1 xdebug.remote_host=192.168.99.1 xdebug.remote_port=9000 xdebug.remote_connect_back=1 xdebug.remote_handler

Xdebug can't connect back to Docker host

时光毁灭记忆、已成空白 提交于 2020-01-03 21:13:01
问题 I've just setup Docker on my machine & have an Nginx/PHP7 (FPM)/MySQL setup all working fine, but having installed Xdebug on the PHP container I can't get it to connect back to PHPStorm on my host machine. Here's my PHP Xdebug config… zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts- 20151012/xdebug.so xdebug.remote_log=/usr/local/var/log/xdebug.log xdebug.remote_enable=1 xdebug.remote_host=192.168.99.1 xdebug.remote_port=9000 xdebug.remote_connect_back=1 xdebug.remote_handler

How to deactivate Xdebug way to dump data in Twig's {{ dump() }} in Symfony 4

人走茶凉 提交于 2020-01-03 18:39:08
问题 I am using Symfony 4 on PHP 7.1.14 with Xdebug enabled and html_errors=on . When I use {{ dump() }} function in my twig, data printed on the screen is hard to read because of poor Xdebug formatting (ugly dump). It's also not dumping objects, which is necessary in my case (I see them as an object and can't see their properties). I remember using this function in Symfony 3 with PHP 7.0.13 and the output was presented as the cool black area with foldable data (cool dump). All PHP options and

How to debug PHP with netbeans and Xdebug in Windows?

我们两清 提交于 2020-01-03 04:47:06
问题 I have installed PHP using wamp server in Windows and I have give the entry for Xdebug in php.ini And Debugging not working in netbeans. How to solve this? Thanks 回答1: If you are using wamp server in windows, make sure you edit the correct php.ini file (open php.ini FROM WAMP TRAY MENU) or check the path to your used php.ini file in phpinfo(). The path to your dll file looks like it might be wrong. Under WAMP it would normally point to something like zend_extension_ts="C:\wamp\bin\php\php5.2