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
1
vote
0 answers

Where are Xdebug configurations set outside of the php.ini? (Windows 10)

Running PHP 8 with PhpStorm version 2020.3.3, on Windows 10. When I use Xdebug3 as my debugger, I am able to use breakpoints successfully, but I get an annoying message every time: Xdebug: [Config] The setting 'xdebug.remote_enable' has been…
blake
  • 83
  • 7
1
vote
0 answers

Visual Studio Code debugger does not stop on breakpoint in any other files except index.php

I have this xdebug configuration on php8.0 on WSL. zend_extension=xdebug.so xdebug.mode=debug xdebug.client_port=9000 xdebug.discover_client_host=1 xdebug.start_with_request=yes xdebug.log=/mnt/c/www/traces/xdebug.log and on launch.json { //…
Fil
  • 8,225
  • 14
  • 59
  • 85
1
vote
0 answers

xdebug.overload_var_dump (setting removed in Xdebug 3) and now?

The xdebug.overload_var_dump configuration removed in Xdebug 3, the documentation shows: xdebug.overload_var_dump Has been removed. PHP's var_dump() is now always overloaded through xdebug_var_dump() when xdebug.mode is set to develop. The…
1
vote
0 answers

How to debug an Ajax request made from the browser in Visual Studio Code using Xdebug v3?

There's a shed-load of similar questions and answers out there. Almost all can be dismissed as referring to Xdebug v2. I am using Xdebug 3.0.0 Release date: 2020-11-25, and everyone else should probably be updating too. I am trying to achieve in…
1
vote
1 answer

Xdebug 3 error message in console: setting 'xdebug.collect_params' has been removed

After upgrading to Xdebug 3 on Ubuntu I see following error message in console after each script execution from command line: Xdebug: [Config] The setting 'xdebug.collect_params' has been removed, see the upgrading guide at…
1
vote
1 answer

VSCode + Lando: Xdebug doesn't stop

I'm trying to setup Xdebug with Lando (v. 3.0.24) with VSCode without success. I've already read official guide plus other on internet, and different topics with problem similar to mine but alas I couldn't get it working. My lando file, which is…
Giuseppe
  • 379
  • 4
  • 13
1
vote
1 answer

Where is PHP executable setting in PhpStorm 2020.3?

I am trying to configure Xdebug 3. In the documentation https://www.jetbrains.com/help/phpstorm/configuring-xdebug.html#integrationWithProduct they show But I cannot find this field. Or how to configure Xdebug 3 it would be enough answer for me.
Darius.V
  • 737
  • 1
  • 13
  • 29
0
votes
1 answer

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 with -arm64 (for my M2 as told by file which php)…
0
votes
1 answer

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 effectively means collect_params is set to display the…
Matt Aikens
  • 71
  • 2
  • 11
0
votes
0 answers

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.1.11 xdebug.client_port=9003 In my VSCode,…
RAMIREZ
  • 168
  • 1
  • 7
0
votes
1 answer

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…
MrBB
  • 131
  • 1
  • 2
  • 11
0
votes
0 answers

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. phpinfo() shows that Xdebug is installed and…
P. Debrabant
  • 131
  • 1
  • 13
0
votes
0 answers

Does the exception breakpoint not support the state attribute?

I tried to use the state attribute on the exception breakpoint, but it seems that this attribute has no effect on this breakpoint type. The breakpoint is always enabled. For line and functions breakpoints, everything works as expected. According to…
troizet
  • 34
  • 3
0
votes
0 answers

Windows 11, PhpStorm, PHP 8, Xdebug3, Docker Container, CLI - Path mappings are not configured for selected interpreter. Please check that mappings

I had this working, but today when I tried to debug my CLI script, I am getting And it does not debug. I have breakpoints that should get hit, but they do not. I do have path mappings set. The Xdebug log is empty (in /tmp/xdebug.log) If I listen…
relipse
  • 1,730
  • 1
  • 18
  • 24
0
votes
1 answer

Wampp with xdebug3 and VScode, no connection

I've made a setup with Wampp to be able switching PHP versions easily. My issue is the debuggung. it was working fine with Xampp, Xdebug3 and VScode. Under Wampp I'm getting no connection when vscode is listening for Xdebug. The ports match, the…