About Xdebug
Xdebug is an extension for PHP that adds several development tools in one package: step debugging from an IDE or editor, improved error reporting, tracing, profiling and code coverage analysis. It is distributed from xdebug.org, and the project asks people who find it useful to support it.
Step debugging lets a developer move through code in an IDE or editor while the script runs. Error reporting gains an improved var_dump() function and stack traces for notices, warnings, errors and exceptions that highlight the path to the error. Tracing writes every function call with its arguments and location to disk.
Profiling output is read with visualisation tools to find bottlenecks, and code coverage shows which parts of a code base execute when PHPUnit tests run. A separate service, Xdebug Cloud, is a Proxy-as-a-Service that deals with networking problems, for example developers sharing a development server on a private network while working remotely.
Key features
- Step debugging from an IDE or editor
- Improved var_dump and stack traces for errors
- Tracing of every function call to disk
- Profiling to find bottlenecks
- Code coverage during PHPUnit runs
- Xdebug Cloud proxy for networking
Good fit for
- Stepping through PHP code in an IDE
- Finding slow code with profiling
- Measuring test coverage with PHPUnit
Xdebug: questions and answers
- What is Xdebug used for?
- Xdebug is a PHP extension that adds step debugging, improved error output, tracing, profiling and code coverage analysis to PHP development. It is a good fit for stepping through PHP code in an IDE, finding slow code with profiling and measuring test coverage with PHPUnit.
- Is Xdebug open source?
- Yes. Xdebug is open source under a custom licence. Its source code is on GitHub at xdebug/xdebug and is written mainly in PHP.
- Is Xdebug free?
- Yes. Xdebug is open source, so the software itself is free to use under the terms of its own licence.
- Can I self-host Xdebug?
- Yes. Xdebug can be self-hosted on your own server or infrastructure.
- What is Xdebug an alternative to?
- Xdebug is an open-source alternative to Blackfire. Other open-source alternatives to Blackfire include SigNoz, Jaeger and Prometheus.
- Is Xdebug actively maintained?
- Yes. The most recent commit to Xdebug was on 4 November 2026, and the latest release is 3.6.0alpha1, published on 8 September 2026. The project has 3.4k stars on GitHub, with 3 added in the last 30 days.
Open-source alternatives to Xdebug
See all
SigNoz
Monitoring & Observability
SigNoz Cloud is a one-stop observability tool built on top of OpenTelemetry. Get APM, logs
OSSvs Datadog★ 33k
Jaeger
Monitoring & Observability
CNCF Jaeger, a Distributed Tracing Platform
Apache-2.0vs Datadog★ 23k
Prometheus
Monitoring & Observability
The Prometheus monitoring system and time series database.
Apache-2.0vs Datadog★ 68k
k6
Testing & QA
A modern load testing tool, using Go and JavaScript
AGPL-3.0vs OpenText LoadRunner★ 32k
Kibana
Monitoring & Observability
Your window into all of your data
OSSvs Splunk★ 21k
OpenTelemetry Collector
Monitoring & Observability
OpenTelemetry Collector
Apache-2.0vs Cribl★ 7.8k

Blackfire