Xdebug is an extension for PHP to assist with debugging and development.
It provides step-debugging and a whole range of development aids, such as stack traces, a code profiler, features to dump the full execution of your script to a file, and more.
Xdebug is free and open source software.
Key Features
- Contains a single step debugger to use with IDEs.
- Upgrades PHP’s var_dump() function.
- Adds stack traces for Notices, Warnings, Errors and Exceptions.
- Features functionality for recording every function call and variable assignment to disk.
- Contains a profiler.
- Provides code coverage functionality for use with PHPUnit.
The debug information that Xdebug can provide includes the following:
- Stack and function traces in error messages with:
- Full parameter display for user defined functions.
- Function name, file name and line indications.
- Support for member functions.
- Memory allocation.
- Protection for infinite recursions.
Xdebug also provides:
- Profiling information for PHP scripts.
- Code coverage analysis.
- Capabilities to debug scripts interactively with a debugger front-end.
Website: xdebug.org
Support: Documentation, GitHub Code Repository
Developer: Derick Rethans
License: The Xdebug License, derived from the MIT license (open source)
Xdebug is written in PHP and C. Learn PHP with our recommended free books and free tutorials. Learn C with our recommended free books and free tutorials.
Related Software
| Debuggers | |
|---|---|
| LLDB | Next generation, high-performance debugger |
| Ghidra | Software reverse engineering framework |
| Delve | Source level debugger for the Go programming language |
| GDB | The GNU Debugger |
| Valgrind | A memory debugger and profiler |
| Radare2 | Portable reversing framework |
| BugStalker | Rust debugger |
| Xdebug | Extension for PHP to aid debugging and development |
| Seer | GUI frontend to GDB |
| iaito | Graphical interface for radare2 |
| React Native Debugger | Standalone app for debugging React Native apps |
| KDbg | Graphical user interface to GDB |
| strace | Diagnostic, debugging and instructional userspace utility |
| rr | Record-and-replay debugger |
| drgn | Programmable debugger that puts scripting at the centre |
| cgdb | Lightweight console frontend to the GNU debugger |
| PuDB | Console-based visual debugger for Python |
| nnd | Partially inspired by RemedyBG |
| bashdb | Source-code debugger for bash; follows the GDB command syntax |
| Sysprof | Profile an application or entire system |
| crash | Linux kernel crash analysis utility |
| Nemiver | Standalone graphical debugger for GNOME |
Read our verdict in the software roundup.
Explore our carefully curated directory of recommended free and open source software, covering every major software category.The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more. Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form. |


Please read our Comment Policy before commenting.