xdebug

Why does PHPUnit hide my xdebug backtrace?

為{幸葍}努か 提交于 2019-11-28 11:41:23
I have PHPUnit and xdebug installed, and in my php.ini files for CLI I've got: display_errors = On xdebug.default_enable = 1 I've verified that an xdebug backtrace is printed when I create an error using the interactive console, but when an error occurs while running phpunit, there is no backtrace? What is happening to the backtrace? Is phpunit hiding it from me? Is there some setting I'm missing? Thanks! What is happening to the backtrace? Is phpunit hiding it from me? Yes, PHPUnit disables xdebug, at least these traces (by calling xdebug_disable() Docs ). Is there some setting I'm missing?

linux nginx+php源码安装

筅森魡賤 提交于 2019-11-28 11:33:50
PHP安装 1)下载 wget http://cn2.php.net/distributions/php-5.6.30.tar.gz 2)解压 tar –xf php-5.6.30 3)进入目录 cd php-5.6.30 4)创建文件夹 mkdir /usr/local/php 5)添加fpm及nginx运行的用户和用户组 groupadd www useradd -g www www -M -s /sbin/nologin 6)编译 ./configure --prefix=/usr/local/php --with-mssql=/usr/local/freetds --with-apxs2=/usr/local/apache/bin/apxs --enable-cgi --with-mysql=/usr --with-config-file-path=/usr/local/php/etc --with-pdo-mysql=/usr/bin/mysql --with-mysqli=/usr/bin/mysql_config --enable-zip --enable-sqlite-utf8 --enable-sockets --enable-soap --enable-pcntl --enable-mbstring --enable-intl --enable-calendar

Xdebug on macOS 10.13 with PHP 7

牧云@^-^@ 提交于 2019-11-28 09:16:55
So macOS High Sierra 10.13 now comes with PHP 7.1. While configuring Apache I also created a new /etc/php.ini from the /etc/php.ini.default file, made sure to check that is was being loaded by PHP after restarting Apache, however the version of Xdebug extension that ships with macOS 10.13 doesn't seem to load or show up when you run phpinfo(); My php.ini is definitely being loaded: $ php -i | grep php.ini Configuration File (php.ini) Path => /etc Loaded Configuration File => /etc/php.ini Here's what my /etc/php.ini looks like where I configure Xdebug: [xdebug] zend_extension = "/usr/lib/php

Xdebug and Netbeans are not communicating with each other

牧云@^-^@ 提交于 2019-11-28 06:30:32
问题 I have spent a couple of days surfing the internet to find an answer to my question. I have tried everything I could but have been unsuccessful thus far in solving this problem. Netbeans keeps giving Waiting for Connection (netbeans-xdebug) . I am using the following software: XAMPP Version 1.8.1. Windows 7 Netbeans IDE 7.2.1 Xdebug 2.2.1 I installed the latest version according via the wizard for the xdebug.org site (http://xdebug.org/wizard.php). Xdebug is working according to phpinfo().The

laradock phpstorm xdebug

五迷三道 提交于 2019-11-28 05:11:42
安装 Xdebug 扩展 编辑 laradock 目录下 .env 文件,修改以下两项 WORKSPACE_INSTALL_XDEBUG=true PHP_FPM_INSTALL_XDEBUG=true 修改后执行 docker-compose build php-fpm workspace 使配置生效 配置 Xdebug 编辑 laradock/workspace/xdebug.ini 及 laradock/php-fpm/xdebug.ini,具体配置如下 xdebug.remote_host=docker.for.win.localhost xdebug.remote_connect_back=0 xdebug.remote_port=9000 xdebug.idekey=PHPSTORM xdebug.remote_autostart=0 xdebug.remote_enable=0 xdebug.cli_color=0 xdebug.profiler_enable=0 xdebug.profiler_output_dir="~/xdebug/phpstorm/tmp/profiling" xdebug.remote_handler=dbgp xdebug.remote_mode=req xdebug.var_display_max_children=-1 xdebug

eclipse xdebug session never completes

雨燕双飞 提交于 2019-11-28 04:04:46
I am trying to get xdebug working with eclipse (3.5) / php (on xampp windows 7). I have verified xdebug is enabled in php - I have the fancy output and my phpinfo shows all the xdebug stuff. I have remote debug on, and typed in the lan ip address on my eclipse machine. When I tell eclipse to debug, it launches the browser and passes the debug URL parameters. That looks OK. However, in eclipse debug perspective it shows 'launching myproject' 57% 'waiting for xdebug session'. It sits there forever. I have turned off windows firewall on both machines. I tried turning implicit flush on. Any ideas?

No xdebug in phpinfo()

眉间皱痕 提交于 2019-11-28 03:38:13
问题 I have added following lines into php.ini [XDebug] zend_extension = C:\PROGRA~1\PHP5\ext\php_xdebug-2.1.0-5.3-vc9.dll xdebug.remote_enable=on xdebug.remote_handler=dbgp xdebug.remote_host=localhost xdebug.remote_port=9000 Version of php_xdebug-2.1.0-5.3-vc9.dll is obtained via page http://www.xdebug.org/find-binary.php. But there are no any mentions of 'xdebug' string in output of phpinfo() . What can be wrong? (This is my second fight with php-xdebug to get working, first time I gave up. If

Xdebug for remote server not connecting

和自甴很熟 提交于 2019-11-28 03:15:53
I want a team using different computers to be able to debug PHP on a remote server, but I am having a hard time getting Xdebug to work in NetBeans 7.0.1. I’ve tried many online tips, but to no avail. For the record, I have successfully installed Xdebug locally on a Windows 7 machine running WampServer. So I can debug PHP with breakpoints in NetBeans, provided I set the Project Properties->Run Configuration->Run As property to Local Web Site . However, as stated above my goal is to debug in NetBeans on a Remote Web Site . My server is a Ubuntu 11.04 machine. I have used the output from http:/

waiting for connection (netbeans-xdebug) gets stuck

左心房为你撑大大i 提交于 2019-11-28 02:08:13
问题 I am using windows 8, Netbeans 8.2, php 5.6, Apache and mysql. I installed them manually and did not use all-in-one package like WAMP. When I click on debugging icon (Ctrl+F5) it gets stuck on "waiting for connection (netbeans-xdebug)" while shows the page completely without stopping at the break points. I reviewed all the possible solutions but none of them worked for me. Such as: Changing the remote_host from "localhost" to 127.0.0.1 or even to the ip address of my machine Changing the port

While I am debugging PHP Script in Eclipse, it doesn't load mysql extension

天涯浪子 提交于 2019-11-28 01:21:30
I have installed Eclipse and xDebug on Ubuntu 10.10. When I debug some php file as a page, that works fine. When I try to debug it as a script, I give the message that mysql extension is not loaded. I set the following options for PHP executable: Executable path: /usr/bin/php PHP ini file: /etc/php5/apache2/php.ini SAPI type: CLI PHP debugger: XDebug I wrote the following script: test.php <?php $ext = get_loaded_extensions(); print_r($ext); ?> When I put in command line /usr/bin/php test.php I give 50 loaded modules include mysql and mysqli. When I debug it as a page in Eclipse I give the same