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
26
votes
5 answers

Xdebug: [Step Debug] Could not connect to debugging client. Tried: localhost:9003 (fallback through xdebug.client_host/xdebug.client_port) :-(

What is the workaround of this message for xdebug ang php? Xdebug: [Step Debug] Could not connect to debugging client. Tried: localhost:9003 (fallback through xdebug.client_host/xdebug.client_port) :-( This message showup when I run composer update…
Fil
  • 8,225
  • 14
  • 59
  • 85
23
votes
7 answers

Disable Xdebug 3 "Could not connect" message in CLI

When working with Xdebug 3 in CLI, it constantly reports the message when there are no breakpoints set: "Xdebug: [Step Debug] Could not connect to debugging client. Tried: localhost:9003 (through xdebug.client_host/xdebug.client_port) :-(" Is there…
Alexei Rayu
  • 406
  • 1
  • 4
  • 14
16
votes
2 answers

Xdebug V3 doesn't stop breakpoints in VSCode

I am trying to debug on my XAMPP using VSCode and didn't worked. I know there are tons of questions about this and I've tried everything I can but still won't work. There is really 1 thing weird thou about my xdebug extension.I am currently using…
kenjiro jaucian
  • 391
  • 1
  • 3
  • 10
12
votes
1 answer

Xdebug 3 config file

I need help with a working step debugging Xdebug 3 config. I am running Xdebug 3.0.1 on Ubuntu server 20.04 with nginx, installed on an Oracle VirtualBox. My IDE is PhpStorm. Everything is working fine (SSH tunnelling, SFTP, port forwarding),…
George Tiganila
  • 519
  • 1
  • 5
  • 18
9
votes
2 answers

xdebug.start_start_with_request=yes WITHOUT error if the debug client is not listening

I used to have the following configuration with Xdebug 2: xdebug.default_enable=1 Xdebug did not slow down execution when no debug client was listening but when I needed to debug something then I only had to enable the listening in PhpStorm and…
mxr576
  • 141
  • 1
  • 4
9
votes
2 answers

Docker PHP with Xdebug 3 env XDEBUG_MODE doesn't work

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…
Sergey Bogatyrev
  • 93
  • 1
  • 1
  • 5
7
votes
1 answer

Xdebug 3 & PhpStorm 2020.2.4

I get this error when using Xdebug version 3 with PhpStorm version 2020.2.4 : Connection was not established. Cannot start debugger session with 'Xdebug 3.0.0' Validate installation php.ini…
Mateo
  • 173
  • 2
  • 7
6
votes
2 answers

How to add xdebug to php:8.1-fpm-alpine Docker container?

I have this dockerfile for my phpunit container: FROM php:8.1-fpm-alpine WORKDIR /var/www/html RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ --allow-untrusted gnu-libiconv ENV LD_PRELOAD…
netdjw
  • 5,419
  • 21
  • 88
  • 162
5
votes
0 answers

Xdebug not stepping over or into - using VSCode and Windows

Hopefully the following will give you enough to go on. My setup I'm using: Windows 10 (now at build 19043.1288), VSCode (v1.61.2) with PHP debug (v1.21.1), both Firefox and Google Chrome browsers, XAMPP (v3.3.0) Xdebug (now v3.1.1-7.4x86_64) I'm…
pjl55
  • 51
  • 2
4
votes
1 answer

Setting up XDebug with Docker and VSCode

I set up a Laravel dev environment using Docker - nginx:stable-alpine, php:8.0-fpm-alpine and mysql:5.7.32. I install Xdebug from my php.dockerfile: RUN apk --no-cache add pcre-dev ${PHPIZE_DEPS} \ && pecl install xdebug \ && docker-php-ext-enable…
4
votes
4 answers

XDebug cannot connect to client from docker container

I have few docker containers: php, nginx, mariadb, redis, adminer and try to debug some PHP code with PhpStorm and Xdebug. Host (Lenovo T490 laptop): $ hostname T490 $ docker -v Docker version 20.10.5, build 55c4c88 $ docker-compose…
TomaszKane
  • 805
  • 1
  • 11
  • 26
3
votes
1 answer

Apache on Mac M1 Silicon will not load xdebug.so - "code signature not valid for use in process"

I'm setting up a new macbook (Monterey 12.2.1 chip Apple M1 Pro), and installed PHP 7.4 with homebrew. I configured PHP to run as a module for the Apache2 server that comes with MacOS (Apache/2.4.51). I immediately ran into trouble because…
2
votes
0 answers

Laravel Sail 10 + Xdebug + PhpStorm + Mac M1

I already have a project running on Laravel Sail 10.0 with roadrunner. I tried to configure Xdebug but I can't make it stop on my breakpoints. Every time I run sail up it PhpStorm create a new tab on debug section called Artisan an a lot of…
2
votes
2 answers

Xdebug xdebug.mode = debug not working for me

I have installed Xdebug on a Ubuntu 20.04 system. I followed this documentation , which I found to be quite well written, and got everything installed per the specs. (I used apt rather than yum, and placed the .so file into /usr/lib/php/20190902…
Dennis
  • 1,071
  • 2
  • 17
  • 38
2
votes
2 answers

Xdebug 3 not included in phpinfo()

I have a problem with Xdebug on Mac OS using Big Sur. Below, I will explain what is happening. When I run phpinfo() - I don't see a Xdebug section at all. When I run commands such as xdebug_call_file() it throws a PHP Fatal error: Uncaught Error:…
user17997251
1
2 3 4 5 6 7 8