3,584 questions
-1
votes
0
answers
91
views
Code works when enabled but errors when Xdebug is disabled [closed]
Cloudlinux
Opcache (disabled)
This situation has me scratching my head, so hopefully someone can shed some light.
I have Xdebug working on a cPanel/WHM server hosted site using PhpStorm as the IDE and ...
0
votes
1
answer
55
views
Laravel Sail + Xdebug
I have Laravel Sail installed in WSL, and I'm trying to debug the application using Xdebug. This only works if I enter the WSL IP address directly into the browser (http://172.17.170.44:8000). If I ...
1
vote
0
answers
101
views
How to connect Xdebug to VSCode
I'm trying to use Xdebug in VSCode. It seems Xdebug is running but I can't get VSCode to hit on the breakpoints I set. In the logfile (see below) it shows some kind of mismatch between files in which ...
0
votes
0
answers
71
views
Symfony app crashes during Xdebug session at EntityManager proxy, but manual evaluation works
I'm experiencing a strange debugging issue with my Symfony web application where Xdebug causes a crash, but manually evaluating the same code works fine.
Problem Description
When debugging my Symfony ...
0
votes
2
answers
104
views
Unable to debug my website on macOS with PhpStorm
My stack is
nginx + php php-fpm + xDebug + PHPStorm
I have put at the very beginning of my index.php
echo "foobar";
exit;
and placed a breakpoint on the very first line.
If I run the script ...
0
votes
0
answers
58
views
XDebug & Netbeans - Works on some projects but not on others
Wondering if anyone can explain this. I have Netbeans 23, using XDebug 3. I find that it works on some of my projects but not on others. What I mean by that is when you hit "Run" (F5) on ...
0
votes
0
answers
58
views
MAMP & Xdebug Troubleshooting
I had Xdebug working on my MAMP Free installation but decided to purchase the full software. I saw in the menu unlike the free version I could enable Xdebug, so I did so, however the connection isn't ...
0
votes
1
answer
104
views
Getting "ERR_CONNECTION_RESET" error with specific xdebug versions
While updating my PHP dev environment by updating PHP and Xdebug versions, I encountered this error "ERR_CONNECTION_RESET" while debugging.
Context: debugging a PrestaShop project.
Old ...
0
votes
0
answers
82
views
Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: localhost:9003 (through xdebug.client_host/xdebug.client_port)
I'm using Xdebug v3.4.0 (with PHP 8.3.9).
I get this error for every request.
I tried other Xdebug versions but still got the issue.
Here my php.ini :
[XDebug]
zend_extension = xdebug
xdebug.mode=...
0
votes
0
answers
70
views
Examining variables in Sublime Text 3 with Xdebug
I've got the Xdebug plugin working with Sublime Text 3 (as well as the SFTP plugin), and I can successfully set breakpoints and have the Xdebug Context pane populate with every variable in my phpBB ...
0
votes
1
answer
88
views
I'm only able to hit breakpoints in PhpStorm with Xdebug if I run docker compose with sudo
As title says, cant hit breakpoints if I run docker compose without sudo.
When I run sudo docker compose up --build, everything works.
When I run docker compose up, I can access my web app on htpp://...
0
votes
1
answer
141
views
Xdebug cannot connect out of docker container
I've enabled xdebug in a docker container but see the following in the log:
server-1 | [18] Log opened at 2025-03-07 12:42:03.355682
server-1 | [18] [Config] INFO: Control socket set up ...
4
votes
1
answer
1k
views
Xdebug helper is no longer supported for configuration of PhpStorm Xdebug configuration. What is a working alternative for the Chrome browser? [closed]
So PhpStorm suggest the Xdebug Helper Chrome extension for debugging with Xdebug. However the extension is no longer supported in the Chrome store and has been turned off with the recommendation of ...
0
votes
0
answers
42
views
Xdebugger socket closes using VSCode, Laravel, Docker
I have a strange behavior with my VSCode debugger. I had to update my docker desktop and it nuked all my containers. after updating,reinstalling and setting up my Laravel containers my XDebug ...
1
vote
0
answers
73
views
CodeLite waiting for XDebug
I tried to set up a php debug-session using CodeLite and XDebug following the instructions at:
https://docs.codelite.org/debuggers/xdebug/
But when I try to connect, the output stucks and CodeLite ...
1
vote
1
answer
124
views
Passing docker-compose .env file values into the container
I'm having real issues trying to pass variables into my docker container to dynamically update my xdebug.ini file;
I have the following simple docker-compose.yml
services:
php:
container_name: ...
0
votes
0
answers
47
views
How to debug filter in WooCommerce Product Sync with Xdebug?
I am using the WooCommerce Product Sync plugin, and I am working with the following two filters to modify product data during synchronization:
https://wptrio.com/guide/woocommerce-product-sync-hooks-...
1
vote
1
answer
59
views
Control Xdebug by source IP
I have Xdebug working with PhpStorm and all is good, however, when I'm debugging code it also runs a debug session for others using the server.
Is it possible to define an IP address or IP range for ...
0
votes
1
answer
341
views
How to suppress 'Deprecated' error message during PHP Xdebug session? [closed]
I am using Yii2 with Firebird and a quite old Yii2 plugin for the Firebird https://github.com/edgardmessias/yii2-firebird.
I have no errors during runtime, but Xdebug session stops with:
Deprecated: ...
0
votes
0
answers
135
views
I am getting a syntax error when running in debug mode
I am trying to get Xdebug to work for a Laravel application in PhpStorm. I have Xdebug installed but not sure how to configure it in this instance. Usually the instance will run in Docker but I'm not ...
0
votes
0
answers
40
views
Calculate code coverage of PHP based application using Selenium tests that reside in separate repository
I have two separate projects: one is my web app itself and other one is Selenium + Java automation tests for my app and we have docker setup.
Is there any way to measure code coverage using Xdebug ...
2
votes
1
answer
334
views
How to have XDebug send log entries to VS Code 'Debug console' window?
I am developing a PHP application hosted on Apache installed through XAMPP 3.3, on Windows. I have the XDebug 3.x extension set up in VS Code and debugging works perfectly fine. My launch.json entry ...
1
vote
1
answer
55
views
Xdebug is not installed on docker container
I'm using this dockerfile to create an image with all the needed php extensions
#Imagen base de PHP 8.2 con Apache y Xdebug 3
FROM php:8.2-apache
# Instalar dependencias de AMQP, Xdebug, y ...
1
vote
1
answer
236
views
Xdebug not running inside a docker environment (Running on WSL)
Problem with Xdebug in Docker Automatically Occupying Port 9003
First of all, I apologize if this post violates any site rules. I don’t post here often, so I may miss some details. I’m also in a bit ...
1
vote
1
answer
78
views
PHPStorm, Laravel, Xdebug unable to hit my breakpoint
I hope someone can save me from drinking and banging my head against the wall ;) I am trying to use PHPstorm instead of VScode to have a complete out-of-the-box solution.
I can't get xdebug to work; I ...
3
votes
1
answer
611
views
How to debug PHP running in local docker container with VSC?
Context
I have a problem with my PHP website. To solve it, I want to step through the code. I am on a Windows machine using VSC as IDE. PHP runs in a docker container in parallel to an nginx container....
0
votes
0
answers
33
views
NetBeans Xdebug working in one project but not another
I have NetBeans 21 installed (yes I know it's a little old but I don't believe that's the issue) with PHP and Xdebug.
I've got a situation where the debugger will start on one project but not on ...
0
votes
1
answer
2k
views
Xdebug for PHP in Visual Studio Code - how to set up and allow breakpoints
I've read most all of the posts about setting up PHP Xdebug for VS Code but no solution for me. I've installed VS Code on a new laptop (that's relevant because I know what else is installed and there ...
0
votes
1
answer
132
views
Xdebug hangs, and then crashes
I have this in php.ini:
extension=php_xdebug-3.4.0beta1-8.2-vs16-x86_64.dll
xdebug.mode=debug
;xdebug.mode=coverage
xdebug.start_with_request=trigger
xdebug.client_host=127.0.0.1
xdebug.client_port=...
1
vote
1
answer
202
views
Why Does Code Coverage for Custom Modules Fail in Laravel?
I set up PHPUnit to work with two different namespaces in a non-Laravel project, and it works perfectly. This is the folder structure of my working example:
├── docker-compose.yml
├── Dockerfile
├── ...
0
votes
0
answers
39
views
Error when configuring the filter in Xdebug
When generating code coverage through Xdebug (PHP), it always asks me to configure the filter, however when editing phpunit.xml, it tells me that filter is an unexpected element.
Current:
<phpunit ...
0
votes
0
answers
79
views
xDebug with dbgpProxy can't connect to my computer
This is my launch.json
{
"name": "Remote listen for Xdebug",
"type": "php",
"request": "launch",
"port": 26357,
"...
0
votes
0
answers
74
views
VSCode PHPDebug ignores breakpoints on a project inside Docker
I have a Laravel project running inside Docker container on WSL2. Xdebug.log shows successful connection: Connected to debugging client: host.docker.internal:9003. When I set a breakpoint and try to ...
0
votes
1
answer
349
views
Xdebug is hitting breakpoint, but VSCode cannot find the file
For PHP development I'm using a docker LAMP image and configured XDebug inside Apache so it is running. On the host system I'm using Ubuntu with VSCode (version 1.95.1)
When Xdebug is hitting the ...
0
votes
0
answers
54
views
Xdebug hangs on curl_exec when debugging docker application
Alright, first off.. This is my first StackOverflow post, so please let me know if anymore information is needed or if anything is done incorrectly.
I am working on a website that has a REST API on ...
1
vote
1
answer
170
views
PHPUnit with Xdebug on a Laravel modularized project not showing source code coverage for modules
I'm working on a Laravel 10 (with PHPUnit 10 and Xdebug 3) project in which business logic has been split into modules: at the app/ directory level is the modules/ directory where resides modules code ...
0
votes
1
answer
133
views
How to debug Volt component in Laravel using VSCode?
I'm currently stuck in how to debug logic that is written inside a Volt component. I use VSCode as IDE and Xdebug to debug the program. Setting up a breakpoint in regular PHP file is easy (thanks for ...
0
votes
0
answers
49
views
PHP, XAMPP, NetBeans - The code runs till the end although finishing debug from NetBeans
I have a code in PHP that edits a text file. The Xdebug stops at a breakpoint (first line of the code). The first line is nothing to do with writing to a file or anything. Then, I press the stop ...
2
votes
1
answer
108
views
Why does Xdebug show different versions of PHP for `Run Time` and `Compile Time`?
I installed php-xdebug on my Debian 12 VM. When I run xdebug_info(), the PHP Build Configuration reports different versions of PHP for Run Time and Compile Time.
Version (Run Time) = 8.3.12
Version (...
1
vote
2
answers
437
views
How to make Xdebug (v3) work with VSCode and Docker (or Podman) on a Windows host?
When I use Xdebug with VSCode (and the PHP Debug extension) locally on my Windows host, it works fine.
But when I try to use Xdebug on a docker/podman container, it doesn't work - it won't stop on ...
0
votes
0
answers
190
views
Using Xdebug in PhpStorm to debug Laravel with Vue js application
I have a Laravel backend application and Vue.js 2 frontend application running on Laravel Valet, with SSL enabled. I’ve set up Xdebug with PHP 8.2, and everything works as expected.
When I test API ...
1
vote
0
answers
70
views
Why PHP code debugging not worked in VSCode
Guess this theme repeated here 1000 times, but I didn't find why VSCode cannot debug PHP code.
Latest VSCode with all required PHP extensions (PHP Debug also). Windows 11.
php --version:
PHP 8.3.9 (...
1
vote
1
answer
223
views
VSCode PHP Xdebug in remote server ignoring breakpoints
I'm trying to debug my app in a remote server.
The remote server is a QNAP NAS, runs Apache and has Xdebug installed.
99-xdebug.ini
[xDebug]
extension = xdebug
xdebug.mode = debug,develop
xdebug....
1
vote
0
answers
665
views
xdebug not installed on php 8.3 docker container
I'm using this Dockerfile
FROM php:8.3-apache
RUN pecl install xdebug-3.3.2 && docker-php-ext-enable xdebug
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
...
1
vote
0
answers
66
views
VSCode Xdebug exception message encoding issue - Korean language
I'm using Xdebug in VSCode on Windows 10.
When I debug PHP source using Xdebug, Character Encoding for Exception Message is weird. My Source File Encoding is UTF-8, and php.ini configuration is also ...
-1
votes
2
answers
359
views
PHP Composer errors with XDEBUG_MODE not recognized in VS Code
I am running VS Code. I have PHP installed locally, Composer installed locally and the VS Code Composer plugin installed in VS Code. From VS Code terminal, I pulled the GitHub master project and the ...
0
votes
2
answers
624
views
Debug Laravel App running on Herd with Xdebug
I'm trying to setup debugging for a Laravel app running on my machine (via Herd).
The initial server configuration looks like this:
Then I hit "Start Listening to PHP Debug connections" in ...
-1
votes
1
answer
180
views
How to pass custom config options for xdebug settings in PhpStorm?
In order to solve another problem, I want to manually provide certain configuration options for the Run Debug configuration.
In PhpStorm, at
Settings > PHP > Debug > Settings
there is a flag ...
-1
votes
2
answers
683
views
How to connect to Xdebug in WSL session from Windows host in PhpStorm?
On Windows 11, I use PhpStorm. The PHP script is executed through a Ubuntu instance via the WSL (Windows Subsystem for Linux) within PhpStorm.
I use php8.3 and xdebug-3. Xdebug seems loaded as:
...
1
vote
1
answer
114
views
Remote Xdebug and 504 on lost connection
I set up a remote Xdebug to work through the SSH tunnel. Everything works perfectly, but if I eventually drop the SSH connection (lost internet connection, switch VPNs or just close the laptop screen) ...