Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
PHP C Shell C++ VimL JavaScript Other
Branch: master
Pull request Compare This branch is 74 commits ahead of xdebug:master.
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 Fixed test case for self:: in assignment traces.
.cvsignore - Add missing entry
.gitignore Added more file endings to .gitignore
.travis.yml Apparently using 7.0 instead of nightly is better, as the latter will…
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 [WIP] Made things compile with PHP 5.6 again.
rebuild.sh [WIP] Made things compile with PHP 5.6 again.
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 Zend hash API changes
usefulstuff.h Changed headers to use 2015.
xdebug.c PHP 7 stores the value in ->val, and the (char*) cast hid this error
xdebug.ini Merge branch 'xdebug_2_2'
xdebug_branch_info.c [WIP] Made things compile with PHP 5.6 again.
xdebug_branch_info.h Changed headers to use 2015.
xdebug_code_coverage.c zend_sort()'s callback now only uses one level of indirection
xdebug_code_coverage.h Changes to USER_OPCODE_ARGS passing
xdebug_com.c Fixed issue #1066: Better error message for SELinux preventing debugg…
xdebug_com.h Changed headers to use 2015.
xdebug_compat.c Fixed a memory leak in the PHP 7 reimplementation of php_str_to_str
xdebug_compat.h Use a different style of hash_apply for PHP 7, due to incompatibiliti…
xdebug_handler_dbgp.c EG(zend_constants) contains a generic pointer, and not a zval
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 Don't iterate over the key, if we don't need it
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 PHP 7 stores the value in ->val, and the (char*) cast hid this error
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 Use the STR_NAME_VAL macro we have for this now
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 Zend hash API changes
xdebug_superglobals.h [WIP] Made things compile with PHP 5.6 again.
xdebug_trace_computerized.c Changes to php_addcslashes
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 generator->value now stores a zval instead of a zval*
xdebug_trace_textual.h Changed headers to use 2015.
xdebug_tracing.c [WIP] Made things compile with PHP 5.6 again.
xdebug_tracing.h Changed headers to use 2015.
xdebug_var.c strdup() the result from get_property_info as it returns pointers to …
xdebug_var.h [WIP] Made things compile with PHP 5.6 again.
xdebug_xml.c int -> size_t changes
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.