Questions tagged [xdebug]
Xdebug is a PHP extension with developing aids, a profiler, an interactive debugging, and a code coverage information gatherer.
3,486
questions
0
votes
1
answer
55
views
Why is Xdebug not working with XAMPP, even though it says it is installed in Terminal?
I am required to use XAMPP for my university class, but I cannot get Xdebug to work with it.
I am using an M2 MacBook Air. I followed all the steps as listed by the Xdebug wizard, but no luck.
Both ...
0
votes
1
answer
16
views
VSCode PHP debug ext can not connect to DBGp proxy server
PHP version: v8.1.18
Xdebug version: 3.2.0
web server: Homestead on remote 192.168.10.10
DBGp proxy server runs on local Windows 10:
./dbgpProxy.exe -i 127.0.0.1:9001 -s 0.0.0.0:9003
xdebug.ini
...
0
votes
1
answer
31
views
Docker, Laradock, PhpStorm, WSL2, Xdebug configuration
I've got a problem with connect my Xdebug:
Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: host.docker.internal:9000 (through xdebug.client_host/xdebug....
0
votes
0
answers
46
views
PHPUnit server side coverage with curl requests [duplicate]
I have some tests for an old PHP app, and it have inline tests and some curl requests to test APIs. The PHPUnit coverage, using Xdebug, isn't detecting the curl requests.
Is there a way to follow this ...
0
votes
1
answer
31
views
Xdebug3 does not trigger
I'm trying to set up Xdebug for a remote web server. The idea is to use ssh tunnels from the development machines to the development server. The system is a Debian Bookworm LXC container. The network ...
0
votes
0
answers
33
views
Xdebug doesn't work with Docker + VSCode + Linux
I've tested all the settings I've found on the internet, but I haven't been successful in setting up my Xdebug to run with my Docker. It's active but I can't use the breakpoint; it's as if it's not ...
0
votes
0
answers
43
views
Chrome gets stuck when trying to debug with VSCode
I am a Moodle developer using UTM for my Moodle container (Moodle 4.1.1, Postgres (Debian 12.13-1.pgdg110+1)).
After the recent update of Google Chrome (version 116.0.5845.187 (arm64)) VSCode (version ...
-1
votes
1
answer
49
views
Debugging PHP production application with XDebug when need?
I have a question on debugging PHP application using XDebug in production and would like to have your idea.
We all know that even if the testing and production environments are identical, we still ...
0
votes
0
answers
89
views
Xdebug on Synology NAS
Xdebug section appears in the phpinfo(), so I guess it's already installed on the NAS.
Version 3.1.2
Development Helpers ✔ enabled
Coverage ✘ disabled
GC Stats ✘ disabled
Profiler ✘ disabled
...
0
votes
1
answer
28
views
How to adjust range cap of arrays while debugging
I'm working with PhpStorm v2023.2.1 and I'm currently debugging an array that has over 100 entries. But in the debugging menu it only shows the first 100 entries.
Is there a way to adjust the range of ...
0
votes
1
answer
60
views
I'm getting C:\xampp\php\ext\php_xdebug-3.2.2-8.0-vs16.dll error
I am getting the following error for C:\xampp\php\ext\php_xdebug-3.2.2-8.0-vs16.dll.
I have updated the php.ini file and checked it again and again.
xdebug.mode=debug
xdebug.start_with_request=yes
...
1
vote
1
answer
53
views
Getting Xdebug to work with Laravel Sail + PhpStorm
I have spent 3 days on this now and I can't figure this out. I am running a project using Laravel Sail on WSL2, I'm using PhpStorm for my IDE and trying to get step debugging with Xdebug working. The ...
1
vote
1
answer
46
views
Xdebug in Visual Studio Code not allowing breakpoints in non-php files
Visual Studio Code is only allowing me to place Xdebug breakpoints on .php files but not on .module files.
Is there some configuration that I need to change? Thank you.
0
votes
0
answers
42
views
How to make Xdebug working with Visual Studio Code on MacOS
Since the "brew upgrade" the debugging of PHP code from Visual Studio Code does not work - the performance of the script does not stop at the breakpoint.
I checked PHP info and XDEBUG is ...
1
vote
0
answers
29
views
How to debug CodeIgniter app with PhpStorm
I am unable to initiate a debug session with my CodeIgniter application. I am using nginx, PHP, and PhpStorm. There are configuration files:
nginx:
server {
server_name localhost;
...
-1
votes
1
answer
39
views
Xdebug extension not loading in XAMPP on Mac - x86_64 versus arm64
I followed the instructions on xdebug.org to install Xdebug on my M2 Mac.
For compiling the extension I installed PHP on my machine, so I installed the latest 8.2.
I also installed Xdebug with pecl ...
0
votes
0
answers
42
views
Xdebug not working with "Start Listening for PHP Debug Connections"
I'm trying to get Xdebug to work with "Start Listening for PHP Debug Connections". It's working just fine if I use the "Debug " button. But I don't want to use that since it's ...
0
votes
2
answers
17
views
Eclipse PHP debugging as "Web application" with xdebug zend is not stopping at breakpoints
I configured PHP Xdebug with apache server and using Chrome. And it was working but then I played with other configuration and breakpoints stopped working.
So originally my working configuration is ...
0
votes
1
answer
36
views
Eclipse PHP debugging as "CLI application" does not stop at breakpoints nor first line (using zend xdebug)
Hello I'm using Eclipse 2023-06 (4.28.0)
I used PHP that I copied form WAMP64 c:\wamp64\bin\php\php8.0.26\ to c:\Prog\php8.0.26\
I configured in eclipse: Window->Preferences->PHP->Installed ...
1
vote
0
answers
52
views
PhpStorm's "Listen for Debug Connections" button is not active
At some point the button to enable debugging became inactive. What can be the problem and how to cure it?
I tried to change port and other settings, rebooted the machine.
I searched for information on ...
0
votes
0
answers
25
views
require_once not needed in PhpStorm Docker dev container [duplicate]
I'm developing a small app in PHP using the PhpStorm, Xdebug & Docker container. When I do a new of a class existent in the project in another folder I don't need to use require_once before the ...
0
votes
0
answers
53
views
Trouble setting up Xdebug in VSCode with Docker Containers
I've been struggling to set up Xdebug for my PHP projects in Visual Studio Code while working within Docker containers. I've done my best to configure everything correctly, but I'm running into a ...
0
votes
0
answers
94
views
yii2 advanced template with docker/nginx/php8.2
I want to install Yii2 advanced template with nginx server , mysql 8 DB , php 8.2 , and to enable xdebug also inside
I tried to install template from official website here, & from git here, or ...
1
vote
1
answer
50
views
I want to install multiple versions Xdebug based in each version in brew
I have multiple versions of PHP using brew. When I want to switch between for example from PHP 7.4 to PHP 8.1 I use this command
brew unlink [email protected] && brew link [email protected]
When I download ...
0
votes
0
answers
35
views
Xdebug 3 initializes with errors on PHP 8.0
I can't run Xdebug 3 properly on PHP 8.0. But the same Xdebug config works fine with with PHP 7.3 on the same PC. Also tried changing several ports: no changes. How to fix Xdebug working with PHP 8.0?
...
1
vote
1
answer
61
views
xdebug not breaking in controller at all using laravel
I am trying to use xdebug with visual studio code.
but nothing is working out.
Installed and enabled xdebug and I am a visual Studio code extension PHP debug.
Please review my setting below and guide ...
0
votes
1
answer
27
views
Xdebug 3 collect_params removal from configuration
I recently upgraded our web application from PHP 7.3 to PHP 8.2, and along with it, Xdebug from 2 to 3. One of the changes in Xdebug is to remove the collect_params directive in config. This ...
0
votes
0
answers
1k
views
Xdebug requires Zend Engine API version xxxxxxxx. The Zend Engine API version 2xxxxxxxx which is installed, is newer. XAMPP
I'm working to figure out how to debug PHP in VSCode with Xdebug, running Linux Mint Vera (Victoria).
Followed steps outlined in the Xdebug installation wizard (here: https://xdebug.org/wizard) after ...
0
votes
1
answer
60
views
"Copy Value" when debuging in Visual Studio Code with Xdebug (PHP) it copy type of the variable
when I'm debugging in Visual Studio Code (Linux), working in PHP, and right-click a variable, then click "copy value", it copy the type of the variable instead of content of the value, it ...
0
votes
1
answer
69
views
PhpStorm inserts wrong client_host IP when trying to run debug session
PHP interpreter runs in docker container, Xdebug configuration is
zend_extension=xdebug.so
[xdebug]
xdebug.mode=debug
xdebug.idekey=Docker
xdebug.discover_client_host=on
xdebug.client_host=host....
0
votes
0
answers
43
views
PhpStorm with remote development not getting focus on breakpoint when debugging
I'm doing development on our remote server. In PhpStorm I set up the SSH connection, it installed the headless PhpStorm on the remote server and opened the JetBrains Client. Everything is working fine,...
1
vote
0
answers
31
views
Xdebug and PhpStorm cannot step in private method when PHP is run in docker container
I'm running Apache with PHP and Xdebug in a docker container and debugging works insofar that I can set breakpoints in the code and the debugger stops at these breakpoints. PhpStorm/IntelliJ IDEA is ...
1
vote
2
answers
79
views
Configuring Xdebug CLI debugging in PhpStorm on local Windows/XAMPP environment
I was looking a lot but couldn't find any reliable and relatively easy-to-follow answer on how to configure Xdebug CLI debugging in PhpStorm on a local Windows/XAMPP environment.
The context of my ...
1
vote
1
answer
97
views
Failed loading Xdebug PHP 7.4.0
I am trying to use Xdebug for coverage and debugging in PhpStorm. I have followed several tutorials, mainly this one.
I am getting this error when running php -v.
Failed loading C:\php\ext\php_xdebug-...
0
votes
0
answers
70
views
Integrate Xdebug in PhpStorm with docker for Magento 2
I have a Magento 2 project which has a Docker environment and we're running it on Docker. It is running fine but for debugging some issues I opened it with PhpStorm and now want to integrate Xdebug ...
0
votes
1
answer
52
views
Xdebug installation and setup
I have moved everything to a different server and everything is running successfully except today (and I have spent ALL day) I have attempted the wholly dreaded task of setting up XDebug.
I have read ...
0
votes
1
answer
87
views
Trying to use Xdebug on docker with VS Code in MacOS leads to Error address already in use
I've been trying to use Xdebug in Docker with VSCode in MacOS.
But, if I expose the docker port 9003 (or any other), it fails when VS Code attempts to listen on that port because the port is being ...
0
votes
2
answers
112
views
How do I connect to Xdebug running inside a Docker container on a remote server from my local machine?
I have a Docker Compose stack running on a cloud server. One of the services is PHP with Xdebug.
When I run the stack on my local machine, I can use Xdebug just fine. But when I run it on the remote ...
1
vote
0
answers
46
views
Why is an error interrupting a Xdebug session?
I'm debugging a PHP application (Symfony 6.2) using Xdebug via IntelliJ. Debugging session start just fine and breakpoints are being hit. I'm happy with that. The PHP service runs within a docker ...
0
votes
0
answers
27
views
Xdebug 3 on Windows server via VSCode remote connection
I'm almost there but this last bit is driving me crazy.
I have a Windows Server with PHP Xdebug installed. Xdebug config:
[xdebug]
zend_extension=php_xdebug.dll
xdebug.mode=debug
xdebug.client_host=10....
0
votes
1
answer
49
views
Try to get automatic WSL2 IP for Xdebug and PhpStorm
I configured Xdebug with PhpStorm in a WSL2 Debian instance.
Here is the configuration of my xdebug.ini :
xdebug.mode=debug
xdebug.start_with_request=yes
xdebug.discover_client_host=false
xdebug....
0
votes
1
answer
122
views
xdebug 3, phpstorm configuration under docker installed with wsl 2 ubunto engine with windows 10 as host machine
I have a docker installed on wsl 2 using a program named "micro-env",
The WSL2 fixed IP is :
172.23.183.202
I want to add xdebug 3 to phpstorm, the xdebug is installed in a php 7 docker ...
1
vote
1
answer
38
views
Why does PhpStorm keep opening Xdebug sessions for me all the time
When I use PhpStorm and turn on the server to connect with Xdebug, it happens to me that the debug starts by itself even though I haven't requested it and I can't figure out why.
Does anyone have any ...
1
vote
1
answer
70
views
Run Xdebug with XAMPP, NetBeans, PHP 8.2
I'm trying to run Xdebug on my XAMPP server (Windows 10) under PHP 8.2. I read a lot of documentations and forum and still have a problem: NetBeans not showing any error, but I can't see Variables, ...
0
votes
1
answer
99
views
How to have PHPUnit/Xdebug ignore 'Could not connect to debugging client'
I have my local PHP configured to run Xdebug.
But I don't always have my IDE turned on to listen for Xdebug. When that's the case, I can load web pages from my browser and run CLI PHP scripts without ...
0
votes
1
answer
51
views
Symfony 6 Difficulties to debug using Xdebug in PhpStorm
to solve a problem calling Doctrine flush() I'm trying to debug with xdebug (I'm totally new to this). I think I configured xdebug well but I am not sure to use it properly.
I put a breakpoint on ...
0
votes
0
answers
51
views
Xdebug PHP CLI script from Eclipse don't stop on breakpoints
Tools and versions used:
Linux Mint 21.1
Eclipse IDE for JavaScript ans Web Developers V4.25 (installed from the distrib)
Xdebug : v3.1.2
OpenJDK 11.0.19 2023-04-18
I installed PDT and Xdebug. ...
1
vote
0
answers
56
views
How to specify PHP Xdebug extension in VSCode?
I have two installed extensions: xdebug.php-debug and devsense.phptools-vscode. Both support PHP debugging.
How can I specify which one to use for debugging?
If both are enabled, every debug session ...
1
vote
0
answers
160
views
Xdebug and PhpStorm with Laravel Sail debugs server.php only
I installed the latest Laravel (curl -s "https://laravel.build/example-app" | bash) with SAIL.
In my .env I added:
SAIL_XDEBUG_MODE=develop,debug,profile
When I set the "Break at first ...
1
vote
1
answer
140
views
Xdebug not stopping at breakpoints
Xdebug does not stop at breakpoints.
I tried different versions of Xdebug. (current v1.32.1, v1.32.0, v1.31.1, v1.31.0, v1.30.0)
This is my configuration at the launch.json file:
{
// Use ...