xdebug

How to disable Xdebug loading for PHP CLI? [closed]

六眼飞鱼酱① 提交于 2019-12-21 10:15:03
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . Im using composer, and when i do an update. It takes a huge chunk of time if xdebug is loaded in my php.ini file. How can i disable xdebug only for cli. So composer won't take as much time. Yet i will have xdebug enabled? 回答1: I found the answer by specifying a custom php.ini file

nginx php-fpm xdebug netbeans can start only one debug session

為{幸葍}努か 提交于 2019-12-21 07:38:28
问题 In the past, I've used apache+mod_php +xdebug+netbeans for development my website (server is my local machine, running Debian Squeeze), with pleasure - xdebug worked just as expected, debug sessions could be started and stopped any time, when I need it. But, when I moved to nginx+php_fpm +xdebug+netbeans I've experienced some problems with debugging. My debug session could be very long (much more than 30 seconds) and it seems, that nginx couldn't wait so long, it shows "504 Gateway timeout

nginx php-fpm xdebug netbeans can start only one debug session

99封情书 提交于 2019-12-21 07:38:01
问题 In the past, I've used apache+mod_php +xdebug+netbeans for development my website (server is my local machine, running Debian Squeeze), with pleasure - xdebug worked just as expected, debug sessions could be started and stopped any time, when I need it. But, when I moved to nginx+php_fpm +xdebug+netbeans I've experienced some problems with debugging. My debug session could be very long (much more than 30 seconds) and it seems, that nginx couldn't wait so long, it shows "504 Gateway timeout

XDebug could not connect to client

情到浓时终转凉″ 提交于 2019-12-21 03:32:08
问题 I am trying to debug with NetBeans Mac locally. This is my php.ini [xdebug] xdebug.default_enable=1 xdebug.remote_enable=1 xdebug.remote_handler=dbgp xdebug.remote_host=localhost xdebug.remote_port=9000 xdebug.remote_autostart=1 xdebug.remote_log="/Applications/MAMP/logs/xdebug.log" xdebug.idekey="netbeans-xdebug" zend_extension="/Applications/MAMP/bin/php/php5.4.10/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so" This is what I had been getting in xdebug.log I: Connecting to

In php , is there a way to trace a variable?

懵懂的女人 提交于 2019-12-21 03:02:24
问题 I have this variable in a big php script that I want to trace back to where/when and what value it was instantiated. Is there a function/api or debugging techniques to do this? 回答1: If you're using PHPStorm you can set breakpoints and inspect the values of variables. http://blog.jetbrains.com/phpstorm/2013/12/just-in-time-debugging-and-php-exception-breakpoints-with-phpstorm-and-xdebug/ You'll need xdebug installed as well. 回答2: You can use debug_print_backtrace() function. http://php.net

Xdebug not as zend extension IIS7

左心房为你撑大大i 提交于 2019-12-21 01:19:10
问题 I can't get xdebug loaded as Zend extension, because the php.ini automatically puts in the wrong term. The message in phpinfo() is XDEBUG NOT LOADED AS ZEND EXTENSION I'm Using IIS 7.5 on Windows Server 2008 R2 Enterprise PHP 5.3.8 Zend Engine v2.3.0 My part of php.ini : [xdebug] zend_extension=php_xdebug-2.2.0-5.3-vc9-nts.dll xdebug.remote_enable=1 xdebug.remote_host="localhost" xdebug.remote_port=9000 xdebug.remote_handler="dbgp" No errors logged. I need to activate every extension in IIS

Xdebug breaks on access to class static property

杀马特。学长 韩版系。学妹 提交于 2019-12-20 18:53:53
问题 I've a problem with Xdebug in my development environment. FROM library/php:5.5-apache RUN apt-get -qqy update && apt-get -qqy install \ libpq-dev \ libmcrypt-dev \ libxml2-dev \ ssl-cert \ vim \ git \ mc \ && rm -r /var/lib/apt/lists/* # compile and add xdebug RUN pecl install xdebug \ && echo "zend_extension=xdebug.so" >> "/usr/local/etc/php/conf.d/xdebug.ini" # configure apache and vhosts RUN a2enmod rewrite ssl \ && a2ensite 000-default default-ssl ENV APACHE_RUN_USER www-data ENV APACHE

PHP foreach原理详解

若如初见. 提交于 2019-12-20 18:03:29
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 当 foreach 开始执行时,数组内部的指针会自动指向第一个单元。如果移动指针的结果超出了数组单元的末端,则退出循环。 例子: $array = [ 'name' => 'Jobs', 'age' => 50, ]; foreach ($array as $key => $value) { $value = 22; //赋值,但是没有影响到$array[$key]位置的值,除非加上 $array[$key] = $value; } 上面的foreach 对数组内的值没影响。有时候我们为了在循环过程中改变数组项的值,在foreach的时候变量入口可以加个&符号,表示,循环过程中使用数组中原来的值,而不是一个复制的值,如 $array = [ 'name' => 'Jobs', 'age' => 50, ]; foreach ($array as $key => &$value) { //直接改变数组$array[$key]位置的值 $value = 22; } 结果输出对比: Array ( [name] => Jobs [age] => 50 ) Array ( [name] => 22 [age] => 22 ) 原因分析: $key 和 $value 都是临时变量,foreach的时候

Waiting For Connection (netbeans-xdebug) MAMP OS X

梦想的初衷 提交于 2019-12-20 12:37:18
问题 Preamble After many hours, I have been unable to get NetBeans to connect to xdebug. Some months ago, after upgrading from an old version of MAMP to MAMP PRO, debugging worked flawlessly. A week ago it started getting flakey. It would appear to connect but would not stop at the breakpoints. Restarting NetBeans (v7.0.1) and apache sometimes got it working for a short time. I really needed it fixed so I installed the latest version of MAMP PRO (2.1.2). Now I get the Waiting For Connection

Remove java exception breakpoints when debugging Liferay in eclipse

三世轮回 提交于 2019-12-20 10:58:08
问题 By debugging of Liferay Portal, that is tomcat application, eclipse make usual stop at ThreadPoolExecutor$Worker.run() line: 912 although I don't set a breakpoint at this class. The ThreadPoolExecutor isn't a class of my application, I think that belongs to tomcat. My Question is: what is wrong here, and why eclipse stopt here? And is it possible to set such "external breakpoints" in eclipse to ignore? 回答1: You can fix this immediately by opening the Markers view and delete the Java Exception