xdebug

xdebug 配置

℡╲_俬逩灬. 提交于 2019-12-18 12:44:48
[Xdebug] zend_extension_ts="D:\wamp\bin\php\php5.2.9-2\ext\php_xdebug.dll" ;是否开启自动跟踪 xdebug.auto_trace = On ;是否开启异常跟踪 xdebug.show_exception_trace = On ;是否开启远程调试自动启动 xdebug.remote_autostart = On ;是否开启远程调试 xdebug.remote_enable = On ;允许调试的客户端IP xdebug.remote_host=localhost xdebug.idekey="PHPSTORM" ;远程调试的端口(默认9000) xdebug.remote_port=9000 ;调试插件dbgp xdebug.remote_handler=dbgp ;是否收集变量 xdebug.collect_vars = On ;是否收集返回值 xdebug.collect_return = On ;是否收集参数 xdebug.collect_params = On ;跟踪输出路径 xdebug.trace_output_dir="D:\xdebug" ;是否开启调试内容 xdebug.profiler_enable=On ;调试输出路径 xdebug.profiler_output_dir="D:

Settings up xdebug on MAMP PRO

喜夏-厌秋 提交于 2019-12-18 11:45:27
问题 I am trying to set up xdebug on mamp pro with no success. I searched all over the internet, nothing helped me. First I have tried just to uncomment the following line in php.ini: zend_extension="/Applications/MAMP/bin/php/php5.4.4/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so" Next, I've tried the wizard: http://xdebug.org/wizard.php Next, I've tried adding these lines to php.ini: xdebug.default_enable=1 xdebug.remote_enable=1 xdebug.remote_handler=dbgp xdebug.remote_host=localhost

What's the Difference Between Extension and zend_extension in php.ini?

我们两清 提交于 2019-12-18 10:48:12
问题 When I installed Xdebug through pecl , it added the following line to my php.ini file. extension="xdebug.so" and everything I used worked. Until today. Today I was having trouble setting up Xdebug for interactive debugging. I couldn't get anything working until I changed the above to zend_extension="/usr/local/lib/php/extensions/xdebug.so" (Caveat: I think this is what got me working, but I'm not 100% sure) This raised the question in my mind. What's the difference in loading an extension via

Phpstorm, xdebug and vagrant still waiting for incoming connection

孤街醉人 提交于 2019-12-18 05:42:25
问题 This is annoying me, mainly because it was working fine then all of a sudden breakpoints stopped breaking and when i checked debugger it was just waiting for incoming connection. My vagrant machine is running on private_ip: 192.168.13.37 My xdebug.ini config is as follows: zend_extension=/usr/lib/php5/20090626+lfs/xdebug.so xdebug.remote_enable = on xdebug.remote_connect_back = on xdebug.remote_port = 9020 These are my PHPstorm debug settings: I have a vagrant server setup in PHPstorm which

Prevent xdebug to break at first line of index file

流过昼夜 提交于 2019-12-18 05:37:10
问题 I have xdebug setup with Eclipse PDT. Every time I start a debug session, Eclipse breaks at the first line of my root index.php file. Is it possible to prevent this behavior? 回答1: Ok I found what the problem was. In Eclipse, I just needed to go in "Windows -> Preferences -> PHP -> Debug" and uncheck "Break at first line". To make it work, I also had to go in "Run > Debug Configurations > PHP Web Application" and unselect "Break at first line" in all the configurations. You might have to

How to debug docker container with PhpStorm

為{幸葍}努か 提交于 2019-12-18 05:12:09
问题 Can't debug the web app with the following configuration: Dockerfile: FROM php:7-fpm RUN yes | pecl install xdebug \ && echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \ && echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \ && echo "xdebug.remote_autostart=0" >> /usr/local/etc/php/conf.d/xdebug.ini \ && echo "xdebug.remote_host=site.dev" >> /usr/local/etc/php/conf.d/xdebug.ini \ && echo "xdebug.remote

xdebug won't stop at breakpoint

老子叫甜甜 提交于 2019-12-18 03:03:48
问题 I spend some hours to set up my IDE to debug PHP with eclipse and xdebug.. Everything is ok except the breakpoint I set on eclipse. If I double-click on a line to add a breakpoint, the debugger want not to stop.. If a add the line xdebug_break() the debugger stops well at the line... It's maybe a problem with the configuration. Could anyone help me ? Eclipse: Eclipse PDT 2.2.0 All In Ones Windows 32 bits Xdebug: 5.3 VC6 (32 bit) PHP: PHP Version 5.3.3 PHP.ini [xdebug] xdebug.remote_enable=1

How can I use xdebug to debug only one virtual host?

回眸只為那壹抹淺笑 提交于 2019-12-18 02:49:32
问题 I have installed xdebug, I can see in phpinfo() that it's installed (but it's OFF). However, I don't want to enable it for the whole server/apache2, I just want to enable it for one virtual host. How can I do this? 回答1: You can set xdebug in php.ini with off value: zend_extension=/usr/lib/php/modules/xdebug.so xdebug.remote_enable off xdebug.remote_port 9000 xdebug.idekey PHP-XDEBUG and turn on only .htaccess with directive: php_flag xdebug.remote_enable on 来源: https://stackoverflow.com

Enabling XDebug in XAMPP slows down phpmyadmin

喜夏-厌秋 提交于 2019-12-18 02:48:58
问题 whenever i enable xdebug for debugging my php-projects with the following standard settings, it slows down phpmyadmin on every single action. just opening phpmyadmin takes nearly 10 seconds. zend_extension = "C:\xampp\php\ext\php_xdebug.dll" xdebug.profiler_append = 0 xdebug.profiler_enable = 1 xdebug.profiler_enable_trigger = 0 xdebug.profiler_output_dir = "C:\xampp\tmp" xdebug.profiler_output_name = "cachegrind.out.%t-%s" xdebug.remote_enable = on xdebug.remote_handler = "dbgp" xdebug

Using XDebug to trace a PHP web service page

百般思念 提交于 2019-12-17 19:46:30
问题 I'm using Eclipse and XDebug to develop a PHP application that relies on web services. I have test pages that consume my services in 2 ways: AJAX (using jQuery) and cURL. I add breakpoints to my service page and launch the debugger. When I call the the service from AJAX, execution stops nicely at the breakpoint, and I get my variables, step-by-step control etc. But when I call the service using cURL (i.e. from within a PHP page), the breakpoints fail to function. Even if I turn on the "Break