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
0
votes
0 answers

I want to use the Xdebug profiling in PhpStorm

Environment Windows 10 Home local PHP 7.4 PhpStorm 2021.2 Xdebug 3 Question I want to profile with Xdebug in my own application. I made the following settings. php.ini: xdebug.mode = profile; xdebug.start_with_request = trigger; I changed the…
Suumon
  • 1
0
votes
1 answer

Xdebug 3.0.4 is not workinng

I have been trying to connect Xdebug to my open server project for the 2nd day, but it refuses to work. I've read a lot of articles and tried all the different options but still couldn't get the breakpoint to hit. Below I will send all the…
0
votes
1 answer

PhpStorm , Xdebug 3, PHP 8.0.11, xdebug fails at variable?

I recently tried to switch from PHP 7 to PHP 8, but I'm having trouble with Xdebug behaving oddly. Basically step-sequencer seems to hit just fine. Variables view does show $_COOKIE and $_SERVER variables, but whenever I assign an variable, such as…
Janne
  • 1,111
  • 3
  • 12
  • 17
0
votes
1 answer

Undefined subroutine &main::open_quote called at /usr/local/bin/autom4te line 262

Hi I try to install xdebug via pecl on macox (Big Sur 11.5.2) But I get error message xdebug volodymyr$ pecl install xdebug downloading xdebug-3.0.4.tgz ... Starting to download xdebug-3.0.4.tgz (215,870…
Vlad
  • 25
  • 5
0
votes
1 answer

Xdebug 3 doesn't stop on breakpoints

I setted Xdebug extension and it's installed, I can see it on phpinfo() but it doesn't stop on the breakpoints and it doesn't write anything into xdebug.log file. This is php.ini contents: zend_extension =…
a_fsd
  • 5
  • 3
0
votes
1 answer

PHP error log spammed by Xdebug Time-out messages

The step-debugger is working fine, no issues there. Each time I'm working in VS code without listening to any incoming connections from xdebug, PHP writes this message to my logs when I refresh my page: [06-Sep-2021 13:39:58 Europe/Brussels] Xdebug:…
DerpyNerd
  • 4,743
  • 7
  • 41
  • 92
0
votes
1 answer

Xdebug doesn't terminate PHP script when debugging stops

When I stop debugging, my PHP daemon script continues to run in the background. How do I make xdebug automatically terminate/kill my PHP script when I stop debugging? My environment: PHP 8 (cli) with the xdebug extension. Visual Studio Code with…
LogicalException
  • 566
  • 2
  • 7
  • 16
0
votes
1 answer

How to create launch.json file and start debugging PHP in VSCode?

I installed PHP debug extension in VSCode, installed Xdebugger also by analyzing phpinfo() file. Now I am unable to debug the file (forward arrows are not coming for debugging). How to write launch.json file and start debugging? settings.json { …
Code cracker
  • 316
  • 1
  • 5
  • 20
0
votes
1 answer

Xdebug 3 is installed and showing on CLI but not showing in browser using phpinfo

I have installed xdebug 3 on Mac M1 and when I run php -v it shows me that the xdebug is installed. I am sharing some valuable information for you below. php -v PHP 7.4.22 (cli) (built: Jul 29 2021 09:14:29) ( NTS ) Copyright (c) The PHP Group Zend…
0
votes
2 answers

Valet, Xdebug after reboot Big Sur not working

After successfully installing Valet, Xdebug and configuring VSCODE for the Listener for Xdebug 3. and checking that everything worked, at the first power off and on of the mac (OS: Big Sur), Xdebug started to stop working. I tried to restart valet…
Pave
  • 1
  • 2
0
votes
1 answer

PHP - Xdebug 3.0.4 - Step debuger not working

I cant' activate the step debugger of Xdebug 3.0.4 with PHP 7.4.20. Xdebug features status: So, my Xdebug configuration is…
Alexandre
  • 159
  • 1
  • 10
0
votes
1 answer

XDEBUG_PATH_EXCLUDE in xdebug.ini

I have a setup with CentOS where xdebug 3 is installed. As we are having problems with our umask for PHP processes with have in the php.ini added an umask.php file with auto_prepend_file, when triggering XDEBUG this file is of course hit as first,…
Tomasnorre
  • 411
  • 2
  • 13
0
votes
0 answers

Debugging WordPress with Xdebug - PHP Fatal Error: Uncaught Error: Call to undefined function get_header()

I'm trying to debug a WordPress-installation using Xdebug and PhpStorm. If I write this in the top of functions.php: [line 1]:
Zeth
  • 2,273
  • 4
  • 43
  • 91
0
votes
1 answer

Connecting to XDEBUG on remote Docker Image

I am trying to debug using NetBeans 11 as my client, Xdebug 3 on the Docker image. The Docker container is on a remote host. I am unable to make a connection. Indicator at the bottom of the NetBeans screen scrolls forever with "waiting for…
0
votes
0 answers

PhpStorm 2021.1 throws "Error running 'ABCD'. Debugger extension not detected"

This seems to be a PhpStorm EAP trait -same thing happened to me with 2020.3. This is the php.ini config that worked for 2020... [Xdebug] zend_extension = /usr/lib64/php/modules/xdebug-3.0.2.so xdebug.remote_enable = on xdebug.remote_autostart =…