dev-php/xdebug - 3.5.3 (inode64-overlay)

Search

Notice: This package is in a virtual group: virtual/developer-php
Equivalents: app-editors/vscode, dev-lang/php, dev-php/PHP_CodeSniffer, dev-php/composer, dev-ruby/sass, dev-util/phpstorm, dev-util/uglifyjs, net-libs/nodejs, sys-apps/yarn

Install

Install this version:

emerge -a =dev-php/xdebug-3.5.3

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-php/xdebug-3.5.3

Or alternatively:

emerge --autounmask-write -a =dev-php/xdebug-3.5.3

Package Information

Description:
A PHP debugging and profiling extension
Homepage:
https://xdebug.org/
License:
Xdebug

Ebuild Details

Version EAPI Keywords Slot
3.5.3 8 ~amd64 ~hppa ~ppc64 ~x86 3
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
PHP_EXT_NAME="xdebug"
PHP_EXT_INI="yes"
PHP_EXT_ZENDEXT="yes"
PHP_EXT_INIFILE="3.0-xdebug.ini"

USE_PHP="php8-2 php8-3 php8-4 php8-5"

MY_PV="${PV/_/}"
MY_PV="${MY_PV/rc/RC}"

inherit php-ext-source-r3

DESCRIPTION="A PHP debugging and profiling extension"
HOMEPAGE="https://xdebug.org/"
# Using tarball from GitHub for tests
SRC_URI="https://github.com/xdebug/xdebug/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${MY_PV}"
LICENSE="Xdebug"
SLOT="3"

KEYWORDS="~amd64 ~hppa ~ppc64 ~x86"
IUSE="test"

RESTRICT="!test? ( test )"

RDEPEND="${DEPEND}"
BDEPEND="test? ( dev-lang/php:*[cgi,phpdbg] )"
DOCS=( README.rst CREDITS )
PHP_EXT_ECONF_ARGS=()

src_test() {
	local slot
	for slot in $(php_get_slots); do
		php_init_slot_env "${slot}"
		TEST_PHP_EXECUTABLE="${PHPCLI}" \
		TEST_PHP_CGI_EXECUTABLE="${PHPCGI}" \
		TEST_PHPDBG_EXECUTABLE="${PHPCLI}dbg" \
		TEST_PHP_ARGS="-n -d foo=yes -d session.save_path=/tmp -d zend_extension=${PHP_EXT_S}/modules/xdebug.so" \
		"${PHPCLI}" run-xdebug-tests.php -q -x -j4 --show-diff || die
	done
}

pkg_postinst() {
	ewarn "We have set xdebug.mode to off, as xdebug can be"
	ewarn "installed as a dependency, and not all users will want xdebug to be"
	ewarn "enabled by default. If you want to enable it, you should edit the"
	ewarn "ini file and set xdebug.mode to one or more modes e.g. develop,debug,trace"
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-php/xdebug | euse -E <flag> -p dev-php/xdebug | euse -D <flag> -p dev-php/xdebug

Global/Standard Flags

Inherited Eclasses

Dependencies

BDEPEND

test? ( dev-lang/php:*[cgi,phpdbg] )

Manifest for 3.5.3

Type File Size Source URLs
DIST xdebug-3.5.3.tar.gz 527499 bytes https://github.com/xdebug/xdebug/archive/${MY_PV/RC/RC}.tar.gz