Questions tagged [xdebug]

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

  • Homepage: https://xdebug.org/
  • Changelog: https://xdebug.org/updates
  • Latest stable version: 3.2.2, released on 2023-07-14 (supports PHP 8.0, 8.1 and 8.2)
  • Oldest supported version: 3.1.6, released on 2022-11-08 (supports PHP 7.2, 7.3, 7.4, 8.0 and 8.1)
  • Latest for 2.x branch: 2.9.8, released on 2020-09-28 (supports PHP 7.1, 7.2, 7.3, 7.4)
3472 questions
63
votes
14 answers

Can't install xdebug on Mac with Homebrew

I'm kind of new to using Homebrew, but I love it. It's so easy. I'm trying install Xdebug. Some of the posts on the web say to do this: brew install xdebug But it doesn't work. I get: Error, no available formula. I did brew search xdebug and…
sehummel
  • 5,476
  • 24
  • 90
  • 137
58
votes
1 answer

How do a read a xdebug profile in webgrind?

I have setup xdebug and webgrind and I have generated a profile so I can start improving the speed of my code execution. I have displayed the profile in webgrind but I haven't got a clue what any of it means. All the googling I have done doesn't…
David
  • 16,246
  • 34
  • 103
  • 162
56
votes
7 answers

Is it possible to use xdebug on Ubuntu?

I am trying to debug some PHP code and wanted to download the XDebug debugger for PHP. All I see there is Windows binaries for downloading. Is it at all possible to use it on Ubuntu?
Genadinik
  • 18,153
  • 63
  • 185
  • 284
55
votes
2 answers

What is "" an indication of in Xdebug?

I have an xdebug profile on a php script that I parsed with kcachegrind. Here is a screenshot showing that the most time spent inside any given function was spent inside and the top 'Callers' were made from 'include' and 'include_once' in…
Derek Downey
  • 1,512
  • 2
  • 10
  • 16
52
votes
9 answers

PHP7 CLI attempts to load xdebug twice - "Cannot load Xdebug - it was already loaded"

After upgrading Ubuntu from 14.04 to 16.04, PHP CLI started complaining about xdebug: $ php -v Cannot load Xdebug - it was already loaded PHP 7.0.13-0ubuntu0.16.04.1 (cli) ( NTS ) Copyright (c) 1997-2016 The PHP Group Zend Engine v3.0.0, Copyright…
bcmcfc
  • 25,966
  • 29
  • 109
  • 181
52
votes
27 answers

eclipse xdebug session never completes

I am trying to get xdebug working with eclipse (3.5) / php (on xampp windows 7). I have verified xdebug is enabled in php - I have the fancy output and my phpinfo shows all the xdebug stuff. I have remote debug on, and typed in the lan ip address…
Scott Szretter
  • 3,938
  • 11
  • 57
  • 76
51
votes
3 answers

Trigger xDebug in PhpStorm when calling using CURL

so I use CURL from the command line to make calls to my PHP website: curl -s "url" My question is...is it possible to modify this command so that I can trigger xDebug (combined with an IDE (I use Jetbrains PHPStorm)) when calling the site from CURL…
pillarOfLight
  • 8,592
  • 15
  • 60
  • 90
51
votes
16 answers

PhpStorm debugger not stopping at BreakPoints; keeps waiting for xdebug _SESSION_

Updated question : PhpStorm | WebMatrix (IISExpress) | Xdebug.remote_port | — Which Port(s) to put where? I'm running localhost web server on my Windows machine with WebMatrix and IISExpress. I've installed PHP and Xdebug in it and they both are…
laggingreflex
  • 32,948
  • 35
  • 141
  • 196
47
votes
7 answers

PHP Xdebug on OS X 10.9 Mavericks

I'm having issues setting up my PHP development environment on OS X after installing OS X 10.9 Mavericks. Here is the command I am using to install. sudo pecl install xdebug downloading xdebug-2.2.3.tgz ... Starting to download xdebug-2.2.3.tgz…
greyfox
  • 6,426
  • 23
  • 68
  • 114
46
votes
6 answers

PHPStorm + XDebug Setup Walkthrough

Up until recently, I've been writing code in PHP (via Notepad++) and debugging by checking the logs in IIS (gotta love that web-platform installer); I've since decided to update to a more efficient code-writing / testing environment, and after…
user978122
  • 5,531
  • 7
  • 33
  • 41
46
votes
4 answers

So eclipse and xdebug walk into a bar, and then my apache server dies

I am using windows xp x86, wamp, apache2, php 5.3 x86, eclipse php, and xdebug, running on localhost as both a virtualhost and an https virtualhost eclipse version info Eclipse for PHP Developers Version: Helios Release Build id: 20100617-1415 I had…
Matt
  • 3,778
  • 2
  • 28
  • 32
45
votes
13 answers

Xdebug: [Step Debug] Could not connect to debugging client

I would like to try Xdebug 3.0.0RC1 to explore what has changed and the new features that come with it. I am also using the latest PhpStorm 2020.3 EAP which supports Xdebug 3 with no major config needed. Below is my PhpStorm config for the…
ReynierPM
  • 17,594
  • 53
  • 193
  • 363
45
votes
1 answer

Visual Studio Code debugging Array evaluation

I have a small issue when debugging PHP with Visual Studio Code. The XDebug works fine, I am able to stop at breakpoints and evaluate variables by hovering on them or adding them to watch. However when I attempt to view an array which has more than…
Chen Leikehmacher
  • 1,337
  • 1
  • 11
  • 13
45
votes
24 answers

xdebug remote debugging won't stop at breakpoints

I'm having a problem with xdebug not stopping at breakpoints when using remote debugging (everything is fine when running scripts via the command line). It will break at the first line of the program, then exit, not catching any breakpoints. It used…
Bryan M.
  • 17,142
  • 8
  • 46
  • 60
45
votes
2 answers

What's the difference between "extension" and "zend_extension" in php.ini?

When I installed Xdebug through pecl, it added the following line to my php.ini file. extension="xdebug.so" and everything I used worked. Until today. Today I was having trouble setting up Xdebug for interactive debugging. I couldn't get anything…
Alana Storm
  • 164,128
  • 91
  • 395
  • 599