Questions tagged [xdebug-3]

Xdebug is a PHP extension with developing aids, a profiler, an interactive debugging, and a code coverage information gatherer.

Xdebug is an extension for PHP, and provides a range of features to improve the PHP development experience.

Step Debugging
A way to step through your code in your IDE or editor while the script is executing.

Improvements to PHP's error reporting
An improved var_dump() function, stack traces for Notices, Warnings, Errors and Exceptions to highlight the code path to the error

Tracing
Writes every function call, with arguments and invocation location to disk. Optionally also includes every variable assignment and return value for each function.

Profiling
Allows you, with the help of visualisation tools, to analyse the performance of your PHP application and find bottlenecks.

Code Coverage Analysis
To show which parts of your code base are executed when running unit tests with PHP Unit.


113 questions
2
votes
0 answers

How to setup Xdebug in a Microservice Architecture PHP application, where the backend is split in multiple project

I am working on a project, and my project structure look like : FrontEnd: Application-1 www/ ├─ application-Frontend/ │ └─ composer.json └─ custom-classes/controller/views/model └─ MyClass.php Backend:(Laravel) Application-1 www/ ├─…
Anonymous
  • 21
  • 3
2
votes
1 answer

Xdebug not available in Composer plugin

I'm trying to debug a Composer plugin with Xdebug. I have my environment set up (export XDEBUG_SESSION=1) and the Xdebug loaded in php.d. The script breaks at first line in Composer so everything works so far. In a composer-plugin class method code…
Dinu
  • 1,374
  • 8
  • 21
2
votes
1 answer

How should I setup PhpStorm in order to debug microservices with Docker?

Let's say I have two microservices running in two different Docker containers: ServiceA and ServiceB. ServiceA makes an HTTP request to ServiceB and this one sends a response back. I would like to be able if it is possible, to start my debugging…
ReynierPM
  • 17,594
  • 53
  • 193
  • 363
2
votes
2 answers

Problem Running XDebug 3.x on Laravel/Homestead Vagrant

I need help regarding with my Homestead configuration. Currently I'm running a development project using Laravel/Homestead that running over VirtualBox Vagrant. I'm installed PHP 8.0.2 and Xdebug 3.0.2 and ZendOpCache v 8.0.2 But unfortunately I…
2
votes
1 answer

How to install old versions of Xdebug

Actually, with the new release of Xdebug 3, I have to investigate more why its not working. I don't have much time for that. The problem was I had this command for vagrant box creation but it does not have any version number. sudo apt-get install -y…
Mohsin Younas
  • 324
  • 4
  • 12
2
votes
1 answer

Docker container Xdebug (php-fpm) - There was a problem sending 179 bytes on socket 6: Broken pipe

I am trying to set up Xdebug 3 in a docker container and capture a break point in Visual Studio Code. My xdebug log: [7] Log opened at 2021-02-16 16:12:12.027862 [7] [Step Debug] INFO: Checking remote connect back address. [7] [Step Debug] INFO:…
Piotras
  • 49
  • 3
2
votes
1 answer

NetBeans can't connect Xdebug after updates

I made a mistake and allowed Ubuntu 18.04 updates to be installed. NetBeans 12.1 cannot connect to Xdebug after doing this with the same configuration. I think the problem is with the newer version of Xdebug (3.0.2). # cat…
rokot
  • 58
  • 5
2
votes
1 answer

How to configure Xdebug for JetBrains PhpStorm 2020.1?

So, I was quite happily debugging my PHP code with PhpStorm - until Windows became severely corrupted ... and my backup regime turned out to not quite as good as I had thought (let that be a lesson to many of us :-( ) Here's the relevant part of my…
Mawg says reinstate Monica
  • 38,334
  • 103
  • 306
  • 551
2
votes
0 answers

Xdebug 3 breaks a connection after removing breakpoint in PhpStorm

I've installed Xdebug 3.0.0 and Xdebug breaks a connection after removing breakpoint in PhpStorm. Example scenario: I set two breakpoints in PhpStorm: first line, second line. I make a request and PhpStorm stop the code on the first breakpoint…
pbocian
  • 21
  • 2
2
votes
3 answers

Is there a way to troubleshoot why Xdebug not stopping at breakpoints in VSCode?

I have been working on why Xdebug is not stopping at breakpoints for days. I have read and tried dozens of solutions on StackOverflow. None of them have worked. Is there a method to troubleshoot why the configuration is not working?. Any help would…
Bill
  • 51
  • 1
  • 7
1
vote
0 answers

spawn UNKNOWN Error when debug php on VS Code using xDebug 3

I have installed xDebug extension on VS Code with xampp (php) installed on another computer on the local network. On my computer I have mapped a network drive (w) that points to \ip_of_xampp_computer\d$\xampp. I have configured the following…
Federico
  • 81
  • 2
  • 7
1
vote
1 answer

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-3.1.6-7.4-vc15-x86_64.dll PHP 7.4.0 (cli) (built:…
Erick Villatoro
  • 170
  • 1
  • 9
1
vote
1 answer

Connection was not established. Probably 'xdebug.remote_host=host.docker.internal' is incorrect. Change 'xdebug.remote_host'

I'm trying to use Xdebug (v3) through PhpStorm (v2022.3.2) to debug a PHPUnit test method from inside a Docker container. Xdebug is correctly setup and also the server in PhpStorm is. In fact, if I run tests from command line, Xdebug stops at…
Aerendir
  • 6,152
  • 9
  • 55
  • 108
1
vote
0 answers

NetBeans shows "waiting for connection" when starting Xdebug

Apologies for raising yet another query about this issue but none of the existing information in SO and elsewhere that I've been able to find have helped to resolve my problem. I'm familiar with the environment and have previously installed it…
disklos
  • 11
  • 2
1
vote
1 answer

How to configure Xdebug for multiple users on a local machine?

I have a new installation of Centos 7 running cPanel and WHM on an AWS EC2 instance. All software is the latest versions. I used WHM to setup 5 users, which in turn creates linux users with their own home directory and their own public_html…
karozans
  • 53
  • 7