xdebug

Docker PHP with Xdebug 3 env XDEBUG_MODE doesn't work

ぃ、小莉子 提交于 2021-02-07 07:52:43
问题 I’m trying to config Xdebug 3 in PHP container, and set XDEBUG_MODE env variable to off according with documentation https://xdebug.org/docs/all_settings#mode but xdebug_info() shows that mode=develop . How to fix? Dockerfile: FROM php:7.4.11-fpm … ENV XDEBUG_MODE=off ENV XDEBUG_CONFIG="" RUN pecl install xdebug \ && docker-php-ext-enable xdebug \ ... docker-compose.yml: services: php: build: dockerfile: ${PWD}/.devcontainer/Dockerfile image: php-fpm environment: XDEBUG_MODE: ${XDEBUG_MODE} /

The xdebug extension is not loaded

让人想犯罪 __ 提交于 2021-02-07 05:21:47
问题 I've got xdebug installed fine (showing up in phpinfo()) but I'm trying to get it to work with PHPUnit's code coverage functionality. It keeps telling me "The XDebug extension is not loaded". I've got phpunit working fine with WAMP. When i run php -m i don't see xdebug listed in neither php modules nor zend modules which points as to why phpunit is not find the xdebug extension Does anyone have any idea of this problem? My detailed configuration is as follows: Windows 7 php 5.3.0 Apache 2.2

The xdebug extension is not loaded

冷暖自知 提交于 2021-02-07 05:21:30
问题 I've got xdebug installed fine (showing up in phpinfo()) but I'm trying to get it to work with PHPUnit's code coverage functionality. It keeps telling me "The XDebug extension is not loaded". I've got phpunit working fine with WAMP. When i run php -m i don't see xdebug listed in neither php modules nor zend modules which points as to why phpunit is not find the xdebug extension Does anyone have any idea of this problem? My detailed configuration is as follows: Windows 7 php 5.3.0 Apache 2.2

Unable to watch variables value at PhpStorm breakpoint

本秂侑毒 提交于 2021-02-05 08:16:47
问题 I am facing a strange problem when I am debugging PhpStorm, I am using XAMPP + PhpStorm + Xdebug. I write code below and set up 4 breakpoint <?php $a=1; $b=2; $c=$a+$b; echo $c; After I click listener button and debug button,Chrome visit http://localhost/index.php , the first break point is reached. Then strange phenomenon is here: I can not watch variables value of $a , $b and $c , no matter in debug window or I put mouse over these variables. I click F8 , the left 3 breakpoints will not

PhpStorm debug issue

梦想的初衷 提交于 2021-02-04 21:46:02
问题 I have the issue with the debugging application on local apache server with PhpStorm. After Apache is started the breakpoint is reached for the very first time, which is a good behavior and I can debug the part of code. However then I refresh the page in web browser and the breakpoint is not reached anymore, until I restart apache. Once apache is restarted I can reach the breakpoint - but just for the very first time. Has anyone of you had such issue? 回答1: PhpStorm 2020.3 PHP 7.2.20 Xdebug v2

PhpStorm debug issue

时光怂恿深爱的人放手 提交于 2021-02-04 21:45:29
问题 I have the issue with the debugging application on local apache server with PhpStorm. After Apache is started the breakpoint is reached for the very first time, which is a good behavior and I can debug the part of code. However then I refresh the page in web browser and the breakpoint is not reached anymore, until I restart apache. Once apache is restarted I can reach the breakpoint - but just for the very first time. Has anyone of you had such issue? 回答1: PhpStorm 2020.3 PHP 7.2.20 Xdebug v2

Xdebug with PhpStorm on Ubuntu

≡放荡痞女 提交于 2021-01-29 15:21:10
问题 I am wondering if anyone can shed any light on the appropriate measures to take to ensure that the following set up will allow Xdebug and PhpStorm to work. We have a LAMP stack running fine, with PHP and Xdebug 3 running on an Azure VM. We are on a shared office network with a public IP address but no access to the firewall for the incoming line, although it's very relaxed. We are aiming to connect our machines (x3) to debug our remote web server (the LAMP stack on the Azure VM). We can

xdebug.remote_handler set in PHP.INI, but not showing in PHPinfo

只谈情不闲聊 提交于 2021-01-29 14:31:03
问题 I am trying to get Xbdebug to run with NetBeans, in order to debug some PHP code (I am sure that I had it working a few years back, then switched IDE & now want to switch back). When I try to debug, the status bar shows And, when it doesn't hit a breakpoint on line one of a simple echo('hello'); file, and I stop debugging, it shows Please note that I have XDEBUG_SESSION_START=netbeans-xdebug in my parameters, but I don't think that that is the problem (yet). Instead, look at the message above

Why does assembly of Vagrant and Xdebug not works on latest versions of PHP?

风格不统一 提交于 2021-01-29 14:08:02
问题 I have the working assembly of vagrant + nginx + PHP + xdebug. Everything is ok while the PHP version is 7.0, but when I upgrade PHP to 7.2 or 7.4 Xdebug stop works. Xdebug installed the latest version (3.0.1). Vagrantfile (part): sudo add-apt-repository -y ppa:ondrej/php sudo add-apt-repository -y ppa:ondrej/nginx sudo apt-get update sudo apt-get install -y nginx sudo apt-get install -y php7.0-fpm php7.0-xdebug sudo service php7.0-fpm stop sudo cp /vagrant/.provision/xdebug.ini /etc/php/7.0

PhpStorm debug issue

大憨熊 提交于 2021-01-29 11:34:28
问题 I have the issue with the debugging application on local apache server with PhpStorm. After Apache is started the breakpoint is reached for the very first time, which is a good behavior and I can debug the part of code. However then I refresh the page in web browser and the breakpoint is not reached anymore, until I restart apache. Once apache is restarted I can reach the breakpoint - but just for the very first time. Has anyone of you had such issue? 回答1: PhpStorm 2020.3 PHP 7.2.20 Xdebug v2