Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
PHP C Shell VimL JavaScript HTML Other
Failed to load latest commit information.
.travis.scripts Enable Travis-CI for Xdebug.
contrib Merge branch 'xdebug_2_2'
debugclient Changed references from PHP/CVS to debugclient/GIT in buildcheck script.
docs typo fixes - https://github.com/vlajos/misspell_fixer
tests Merge branch 'xdebug_2_3'
.cvsignore - Add missing entry
.gitignore Added more file endings to .gitignore
.travis.yml Stop using Travis for 5.3
CONTRIBUTING.rst Tidy up some language.
CREDITS - Update CREDITS
LICENSE Welcome 2012.
Makefile.frag Enable Travis-CI for Xdebug.
Makefile.in - Move the allocation defines into xdebug_mm.h
NEWS Merge branch 'xdebug_2_2'
README.rst Added link to support.php for ... support.
compile.bat - Windows build fixes
config.m4 Separate monitoring into its own files
config.w32 Separate monitoring into its own files
package.xml Separate monitoring into its own files
php_xdebug.h Merge branch 'xdebug_2_3'
rebuild.sh Fixed warnings as shown by the extra compile flags.
template.rc Back to -dev for the 3.0 branch
test.sh Allow test files to be passed as the TESTS env var.
usefulstuff.c Swap clause around
usefulstuff.h Changed headers to use 2015.
xdebug.c Merge branch 'xdebug_2_3'
xdebug.ini Merge branch 'xdebug_2_2'
xdebug_branch_info.c Reduce max number of paths from 64k to 4k
xdebug_branch_info.h Changed headers to use 2015.
xdebug_code_coverage.c Fixed issue #1117: Path/branch coverage sometimes crashes
xdebug_code_coverage.h Changed headers to use 2015.
xdebug_com.c Fixed issue #1066: Better error message for SELinux preventing debugg…
xdebug_com.h Changed headers to use 2015.
xdebug_compat.c PHP 5.3 implements the cyclic gargage collector
xdebug_compat.h PHP 5.3 implements the cyclic gargage collector
xdebug_handler_dbgp.c Fixed issue #1133: PDO exception code value type is changed
xdebug_handler_dbgp.h Fixed issue #1133: PDO exception code value type is changed
xdebug_handlers.c Changed headers to use 2015.
xdebug_handlers.h Fixed issue #1133: PDO exception code value type is changed
xdebug_hash.c - Sort the symbol elements according to name. (Patch by Eric Promislow
xdebug_hash.h - Implemented FR #131: XDebug needs to implement paged child object r…
xdebug_llist.c - Reset the lists to NULL properly. It can't be done in the function …
xdebug_llist.h - Added dumping of superglobals (patch by Harald Radi <phanto@php.net>).
xdebug_mm.h Changed headers to use 2015.
xdebug_monitor.c Fixed ZTS issues
xdebug_monitor.h Fixed ZTS issues
xdebug_private.c Changed headers to use 2015.
xdebug_private.h Merge branch 'xdebug_2_2'
xdebug_profiler.c Fixed cachegrind filename and functionname compression on 32bit systems
xdebug_profiler.h Changed headers to use 2015.
xdebug_set.c Changed headers to use 2015.
xdebug_set.h Changed headers to use 2015.
xdebug_stack.c Merge branch 'xdebug_2_3'
xdebug_stack.h Changed headers to use 2015.
xdebug_str.c Get rid of setlocale hack, by using %F instead of %f (and speed up tr…
xdebug_str.h Changed headers to use 2015.
xdebug_superglobals.c PHP 5.3 passes TSRMLS_FETCH to hashtable apply functions
xdebug_superglobals.h Changed headers to use 2015.
xdebug_trace_computerized.c Get rid of setlocale hack, by using %F instead of %f (and speed up tr…
xdebug_trace_computerized.h Changed headers to use 2015.
xdebug_trace_html.c Get rid of setlocale hack, by using %F instead of %f (and speed up tr…
xdebug_trace_html.h Changed headers to use 2015.
xdebug_trace_textual.c Fixed issue #1137: Windows does not support %zu formatting for sprintf
xdebug_trace_textual.h Changed headers to use 2015.
xdebug_tracing.c Fixed issue #1112: Setting an invalid xdebug.trace_format causes Xdeb…
xdebug_tracing.h Changed headers to use 2015.
xdebug_var.c Fixed issue #1166: Using $this in __debugInfo() causes infinite recur…
xdebug_var.h PHP 5.4 stores information in opnodes differently
xdebug_xml.c Changed headers to use 2015.
xdebug_xml.h Changed headers to use 2015.

README.rst

Xdebug

These are instructions for installing Xdebug. Please also refer to http://xdebug.org/support.php for support.

You need to compile Xdebug separately from the rest of PHP. Note, however, that you need access to the scripts phpize and php-config. If your system does not have phpize and php-config, you will need to compile and install PHP from a source tarball first, as these script are by-products of the PHP compilation and installation processes. It is important that the source version matches the installed version as there are slight, but important, differences between PHP versions.

Once you have access to phpize and php-config, do the following:

  1. Unpack the tarball: tar -xzf xdebug-2.2.x.tgz. Note that you do not need to unpack the tarball inside the PHP source code tree. Xdebug is compiled separately, all by itself, as stated above.
  2. cd xdebug-2.2.x
  3. Run phpize: phpize (or /path/to/phpize if phpize is not in your path).
  4. ./configure --enable-xdebug (or: ../configure --enable-xdebug --with-php-config=/path/to/php-config if php-config is not in your path)
  5. Run: make
  6. cp modules/xdebug.so /to/wherever/you/want/it
  7. add the following line to php.ini: zend_extension="/wherever/you/put/it/xdebug.so"
  8. Restart your webserver.
  9. Write a PHP page that calls phpinfo();. Load it in a browser and look for the info on the xdebug module. If you see it, you have been successful!

Support

If you think that you encountered a bug, please file a detailed bug report at http://bugs.xdebug.org. You are required to create an account, this is so that you can be contacted for additional information and to keep out spam.

Derick Rethans — derick@xdebug.org

Something went wrong with that request. Please try again.