3,567
questions
-3
votes
1
answer
38
views
Unverified breakpoint and breakpoint is not working (Laravel, Xdebug, VSCode)
I'm currently a beginner of PHP. I tried to config and run Xdebug in my IDE but it's not working after I searched a ton of online resources. And while I'm trying to run Xdebug, my breakpoint was ...
0
votes
0
answers
14
views
NetBeans : port busy
Configuring Xdebug with NetBeans, whatever port I choose, it says it is already busy when clicking on the "Debug" button.
Of course, those ports are not busy... What is going on?
Server is ...
1
vote
0
answers
41
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....
0
votes
0
answers
47
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 \
...
0
votes
0
answers
24
views
Installation Xdebug on MacOS Sonoma failed
I try to install xdebug with xdebug install guide on my mac(sonoma 14.5),but it failed,
error:
/private/tmp/pear/temp/xdebug/xdebug.c:18:10: fatal error: 'config.h' file not found
#include "...
1
vote
0
answers
30
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
67
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
0
answers
38
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
34
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 ...
0
votes
2
answers
89
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
58
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) ...
0
votes
2
answers
53
views
Xdebug with multiple users on the same Server
We have the following development setup on our developing platform: A dedicated Ubuntu server and Apache with multiple subdomains and virtual hosts with separated configured php-fpm-sockets. All ...
0
votes
1
answer
31
views
php, xdebug_start_trace; no file and no errors
I am trying to debug PHP project which works on calling php scripts and CMS backend. Xdebug module is on, no mess with config it is basically only loaded by zend_extension=xdebug.so. I try to use it ...
0
votes
1
answer
40
views
Config error Xdebug with Docker and VSCode?
I am in a Docker environment with separation of PHP and Apache containers.
I'm using PHP 8.2 and Symfony 7.1. I'm trying to add Xdebug in order to solve a SF code problem.
Anyway, despite the numerous ...
1
vote
0
answers
43
views
PhpStorm Xdebug in docker container
On Linux Mint 22 I have installed Docker version 27.1.1. I try configure for using Xdebug 3 in docker container. On docker-compose.yaml I have
php:
build:
dockerfile: .docker/php/Dockerfile
...
0
votes
0
answers
39
views
PHP or Xdebug character encoding error when encountering an Exception in Xdebug
I have encountered some error in VSCode with Xdebug. Sometimes the Exception message is not represented as UTF-8 so I can't understand the error message.
I've set the character encoding to UTF-8 in ...
0
votes
1
answer
127
views
Laravel/Pest not generating code coverage, worker crashing in parallel after Xdebug enabled
Been banging my head against this one for a while and could use some help. I'm working to get xdebug enabled in our codebase at work to facilitate code coverage. I was able to get it installed and you ...
-1
votes
1
answer
101
views
Connect PhpStorm debugger to Xdebug with Warden
I'm getting an old Magento 1 project up and running, and am hitting issues getting the debugger working. Everything is run on Docker, using Warden to manage the different containers. I've followed the ...
3
votes
1
answer
58
views
The parameter: client, in function mongoc_client_get_uri, cannot be NULL
I'm trying to set up a phpfpm, nginx and mongodb stack in docker. I have a strange problem, which only occurs when capturing the request with xdebug.
When the request is not captured, the result is as ...
0
votes
0
answers
67
views
Xdebug 3.3.x no longer triggering on breakpoint in symlink'ed file of PhpStorm project
I have a local WAMP stack with Xdebug 3.2 that I have been using with a PhpStorm project (PHP, Joomla) where some of the folders of the Joomla directory are symlink'ed to my own development ...
0
votes
1
answer
45
views
Problem in running Xdebug version 2 with PhpStorm
I have a problem with the working of Xdebug 2.1.29 with PhpStorm, PHP version 7.1.
My configuration xdebug.ini:
zend_extension=xdebug.so
xdebug.remote_enable=on
xdebug.remote_autostart=off
xdebug....
2
votes
1
answer
96
views
Generate code coverage for a single test suite
I wish to determine which files are covered by each of my test suites separately. I am using PHPUnit 10.5 with Xdebug for code coverage on my PHP 8.1 project.
Here is what my phpunit.xml configuration ...
0
votes
0
answers
60
views
Trigger for Profiling: PHP CLI Hangs
I'm facing an issue while trying to use Xdebug to profile PHP CLI with the settings xdebug.start_with_request=trigger and xdebug.trigger_value=StartProfileForMe. When I enable these settings, PHP ...
0
votes
1
answer
90
views
Xdebug seems to be starting and stops without doing anything, even tho I set up the breakpoints
I have been encountering following problem:
I have a server that runs my PHP applications. It is in the same network as my local machine. The address of the server is 192.168.0.21.
I want to debug the ...
0
votes
1
answer
21
views
is dbgc a direct replacement for xdc?
I'm looking to replace our ancient xdc (xdebug client) module with something current.
Is the DBGp Client the replacement?
When I look at my old module I see thisxdc module image and I'm not sure how ...
0
votes
0
answers
48
views
VS Code running debug and listening but never accepts the connection
I have been using VSCode for a long time on my computer at work and it runs fine using PHP/Xdebug. It's Windows 10. Currently everything works.
I just recently got a new computer running Windows 11. I ...
0
votes
0
answers
57
views
Configuring Xdebug (PhpStorm docker) for scripts running in the background
Project stack: PHP 7.1 in Ubuntu image, Xdebug 2 and docker.
Architectural solution: a PHP script (server.php) is run on the server with this script:
#!/usr/bin/env bash
#!/usr/bin/env bash
#!/usr/bin/...
0
votes
1
answer
101
views
How to correctly configure Xdebug 3 on a VM with PHPStorm?
I'm using Windows 11 as my host machine and accessing a VM at IP 192.168.160.186:22 via SSH using PuTTY. My VM is set up with Xdebug 3, and I want to use it with PHPStorm. Despite the configurations, ...
0
votes
1
answer
63
views
Prevent Xdebug Errors When Not Listening with IDE
I'm having an issue with Xdebug in my local PHP setup. Here's the situation:
I have Xdebug configured and it's working fine when my IDE (PhpStorm) is set to "Start Listening for PHP Debug ...
0
votes
0
answers
55
views
Why can't I use Xdebug in PhpStorm? I'm using PHP 8.1 and Xdebug 3.3
When I run Xdebug for my index page it gives me an error:
/bin/php -dxdebug.mode=debug -dxdebug.client_port=9003 -dxdebug.client_host=127.0.0.1 /var/www/html/thang/app/code/Smartosc/Thang/Controller/...
1
vote
1
answer
98
views
Xdebug not works with VS Code and MAMP
I use PHP debug extension in VS Code. But debugger doesnt see php superglobals at all (like post, get, session...)
While debugging no errors in IDE.
I followed all instructions on Xdebug site: ...
1
vote
0
answers
68
views
How does Laravel/Pest calculate test coverage?
We are doing a gradual replacement of a very old application with Laravel (version 10 for now). We wanted some quick wins of non-essential functionality, and so have written several months of code ...
0
votes
1
answer
80
views
Listen for Xdebug in VSCode doesn't stop at breakpoint
Although Xdebug with VSCode worked fine for a long time suddenly it's no more possible to debug a PHP script in VSCode.
phpinfo() shows
ZendEngine v4.2.12 with Xdebug v3.3.2.
php.ini:
[xdebug]
...
1
vote
1
answer
43
views
Xdebug extension not getting recognized by PHP
Some of the code I'm working with uses PHP 5.2.6, which is very old and I'm not sure if it's possible to get Xdebug working alongside it.
I have updated my php.ini file as follows:
zend_extension=&...
0
votes
1
answer
38
views
Xdebug: Is it possible to freeze the call stack in Visual Studio Code?
I work with a php app that opens a lot of threads. This means that when I use xdebug I can't look at the call stack because it will refresh when a new thread opens, like this:
https://ibb.co/pf42Qy0
...
0
votes
1
answer
82
views
Xdebug hangs, when xdebug.mode=debug
I have Php 8.2.12, and Xdebug 8.2.12 (php_xdebug-3.3.2-8.2-vs16-x86_64.dll)
The exact config:
extension=php_xdebug-3.3.2-8.2-vs16-x86_64.dll
xdebug.discover_client_host=1
xdebug.mode=coverage
xdebug....
2
votes
1
answer
53
views
Why do my PHPUnit tests in NetBeans run but don't result in any code coverage?
I have Xdebug running and in mode xdebug.mode=develop,coverage. I checked this with phpinfo() and got:
Xdebug:
Development Helpers ✔ enabled
Coverage ✔ enabled
I can run my tests, they ...
0
votes
0
answers
76
views
Xdebug is not working CLI debugging way, but WEB debugging works
My setup is Windows + WSL2 + Ubuntu + Docker, I'm running a Symfony project. Web debugging works fine, for example when I open some page and trigger some function, it works. However, when I run some ...
0
votes
0
answers
103
views
Laravel Herd: upstream prematurely closed connection while reading response header from upstream
I do have Laravel Herd (1.6) installed and Xdebug configured based on Herd's documentation and I'm using PhpStorm as my IDE.
Whenever I run a project endpoint (whether from browser or via API client), ...
0
votes
1
answer
52
views
How to step back debugging in PhpStorm?
I am searching for an option to step back debug in PhpStorm using Xdebug. Where is this option?
Thx in advanced for every constructive help! Here is method, which will be called from anywhere
I want ...
0
votes
0
answers
77
views
Xdebug connection issue in Yii2 docker setup on Windows 10
Wunning on Windows 10, using Docker Desktop, I have the following docker-compose file:
version: '2'
services:
php:
image: yiisoftware/yii2-php:8.1-apache
volumes:
- ~/.composer-docker/...
0
votes
1
answer
65
views
pecl install xdebug on MacOS fails with error 'asm goto' constructs are not supported yet
MacOS Ventura 13.6.6
I installed php version 8.1 using homebrew. Immeidately after I did
pecl install xdebug
I get the following error:
In file included from /private/tmp/pear/temp/xdebug/xdebug.c:21:...
0
votes
0
answers
30
views
Some NetBeans projects run with Xdebug but others won't
I am running NetBeans 12.6 with WAMP under Windows 11 and have one project (call it TVC) which is debugging OK. I added a second project (call it TLH). This gives me the "waiting for connection&...
0
votes
2
answers
100
views
Use Xdebug for a multi-user environment on a remote server using VSCode and SSH
I manage a multi-user development environment on a server. There is a virtual server for each user with its corresponding domain to launch their application. Users connect to said environment (remote ...
1
vote
0
answers
36
views
Xdebug 3 has no effect on YAF framework breakpoints
In $test = time();, there is no effect at the direct breakpoint. You need to break at $application->run() and then step into the effect. Why?
I expect the breakpoints directly on the Controller to ...
1
vote
1
answer
60
views
browser doesn't request to vscode xdebug server
I Try to use xdebug in Windows 10.
I had used xdebug in My Mac machine.
But, In windows 10, I installed xdebug 2.9.8 then config it.
It does not work as I thought.
Below is my php.ini
; XDEBUG ...
0
votes
0
answers
32
views
Why Xdebug function xdebug_get_code_coverage() return detail coverage information only once?
The Xdebug documentation states that when xdebug_start_code_coverage(XDEBUG_CC_UNUSED | XDEBUG_CC_DEAD_CODE | XDEBUG_CC_BRANCH_CHECK); is set, the xdebug_get_code_coverage() function will return a ...
0
votes
2
answers
533
views
How do I set up Xdebug in PhpStorm with Laravel Sail Docker on WSL2 without Docker Desktop
I am trying to debug Laravel Sail which is run via Docker on WSL2. I want to do this without Docker Desktop as this now requires a licence to use in a corporate setting.
I have been following this ...
1
vote
0
answers
115
views
VSCode Remote PHP Debugging, pathMapping not accepting ssh://
I'm attempting to connect to a remote PHP server for debugging. I have followed this video tutorial to do what I need to do, and it works right up until setting the pathMappings. The pathMappings gets ...
0
votes
0
answers
109
views
PhpStorm Xdebug hangs with API platform routes
When using any route defined from an API Platform entity, Xdebug hangs. I'm on a Linux host. My backend docker image is dunglas/frankenphp.
zend_extension=xdebug.so
xdebug.mode=develop,debug
xdebug....