New xdebug_info() function in Xdebug 3

Published On30 Oct 2020

Xdebug 3 xdebug_info function

Xdebug version 3 brings several improvements with its easier configuration options, faster modular functionality (such as separate modes for step debugger, code coverage, profiler, etc).

A small yet quite useful feature in Xdebug 3 is the new xdebug_info function.

xdebug_info function prints a nicely formatted page with all Xdebug configuration options. This page resembles the phpinfo() output.

Xdebug 3 xdebug_info function In its nicely formatted and lengthy information page, Xdebug shows all its modes, INI file information, and all the configuration options. All modes and configuration options are linked to their relevant documentation.

<?php
xdebug_info();

In CLI, running php -i, or any script with xdebug_info shows a CLI-friendly output with an ASCII art.

Xdebug 3 xdebug_info in CLI

Note that Xdebug 3 has no stable releases yet. Xdebug beta 1 was released on 14 Oct 2020. The screenshots are from Xdebug compiled against PHP 8.0-dev. Please consider supporting Derick Rethans for his continuous and amazing efforts for PHP, Date/Time extension, Xdebug, and other projects.

Recent Articles on PHP.Watch

All ArticlesFeed 
PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian

A guide for Debian and Ubuntu on how to install PHP 8.4 on a new server or how to upgrade an existing PHP setup to PHP 8.4.
How to fix `mysql_native_password` not loaded errors on MySQL 8.4

How to fix mysql_native_password not loaded errors on MySQL 8.4

How to fix the SQLSTATE[HY000] [1524] Plugin 'mysql_native_password' is not loaded errors caused in MySQL 8.4 no longer enabling the mysql_native_password plugin by default.
How to fix PHP Curl HTTPS Certificate Authority issues on Windows

How to fix PHP Curl HTTPS Certificate Authority issues on Windows

On Windows, HTTPS requests made with the Curl extension can fail because Curl has no root certificate list to validate the server certificates. This article discusses the secure and effective solutions, and highlights bad advice that can leave PHP applications insecure.
Subscribe to PHP.Watch newsletter for monthly updates

You will receive an email on last Wednesday of every month and on major PHP releases with new articles related to PHP, upcoming changes, new features and what's changing in the language. No marketing emails, no selling of your contacts, no click-tracking, and one-click instant unsubscribe from any email you receive.

Support PHP.Watch — If you find the articles, version information, Codex, and other PHP.Watch contributions useful, consider supporting through GitHub Sponsors. Your sponsorship helps dedicate more time to creating valuable content and improving the PHP community. Together, we can keep the momentum going — thank you for your support!

Thanks to the highest tier sponsor: @TomasVotruba for your generous support to keep PHP.Watch moving 💜