BSD Ports

devel/pecl-xdebug 3.3.2 DragonFly

Xdebug extension for PHP

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
PHP30
Categories
devel, pear
Package size
133.2 KiB, 387.3 KiB installed

Description

The Xdebug extension helps you debugging your script by providing a lot of valuable debug information. The debug information that Xdebug can provide includes the following:

\* stack and function traces in error messages with:
      o full parameter display for user defined functions
      o function name, file name and line indications
      o support for member functions
\* memory allocation
\* protection for infinite recursions

Xdebug also provides:

\* profiling information for PHP scripts
\* script execution analysis
\* capabilities to debug your scripts interactively with a debug client

In the other systems

SystemPortVersion
DragonFlydevel/pecl-xdebug3.3.2
FreeBSDdevel/pecl-xdebug3.5.1
HardenedBSDdevel/pecl-xdebug3.5.1
GhostBSDdevel/pecl-xdebug3.5.1
OPNsensedevel/pecl-xdebug3.5.1

Install

Binary package:

pkg install php81-pecl-xdebug

From DPorts:

cd /usr/dports/devel/pecl-xdebug && make install clean

Dependencies

Run dependencies 1

No port depends on this one.

Configuration

No options to configure.

Service scripts
none
Flavors
php82-pecl-xdebug-3.3.2, php83-pecl-xdebug-3.3.2

Message after installing

This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-xdebug.ini.sample

The php debugger 'xdebug' has been installed successful.
Add a line containing

	extension=/usr/local/lib/php/20210902/xdebug.so

or

	zend_extension=/usr/local/lib/php/20210902/xdebug.so

to your php.ini to load it. xdebug is not compatible with the extension
'Zend Optimizer' - you're only able to use one of them. So take care having
at least the lesser required extension disabled by commenting out it's
loader line in your php.ini.

xdebug 3.0 introduces several breaking changes in the configuration.
Please check the documentation at https://xdebug.org/docs/upgrade_guide

Add following section to enable profiling:

xdebug.mode=profile
xdebug.output_dir = /tmp/profiler