Fixed bug #512: DBGP: breakpoint_get doesn't return conditions in its response.
Possible fix for bug #507/#517: Crashes because of uninitalised header globals.
Fixed bug #501: Xdebug's variable tracing misses POST_INC and variants.
[2010-01-03] — Xdebug 2.1.0beta1
Added error display collection and suppressions.
Added the recording of headers being set in scripts.
Added variable assignment tracing.
Added the ability to turn of the default overriding of var_dump().
Added "Scream" support, which disables the @ operator.
Added a trace-file analysing script.
Added support for debugging into phars.
Added a default xdebug.ini. (Patch by Martin Schuhfuß <firstname.lastname@example.org>)
Added function parameters in computerized function traces.
PHP 5.3 compatibility.
Improved code coverage accuracy.
xdebug_get_formatted_function_stack(), which returns a formatted function stack instead of displaying it.
xdebug_get_headers(), which returns all headers that have been set in a script, both explicitly with things like header(), but also implicitly for things like setcookie().
xdebug_start_error_collection(), xdebug_stop_error_collection() and xdebug_get_collected_errors(), which allow you to collect all notices, warnings and error messages that Xdebug generates from PHP's error_reporting functionality so that you can output them at a later point in your script by hand.
xdebug.collect_assignments, which enables the emitting of variable assignments in function traces.
xdebug.file_line_format, to generate a link with a specific format for every filename that Xdebug outputs.
xdebug.overload_var_dump, which allows you to turn off Xdebug's version of var_dump().
xdebug.remote_cookie_expire_time, that controls the length of a remote debugging session. (Patch by Rick Pannen <email@example.com>)
xdebug.scream, which makes the @ operator to be ignored.
Added return values for xdebug_start_code_coverage() and xdebug_stop_code_coverage() to indicate whether the action was succesfull. xdebug_start_code_coverage() will return TRUE if the call enabled code coverage, and FALSE if it was already enabled. xdebug_stop_code_coverage() will return FALSE when code coverage wasn't started yet and TRUE if it was turned on.
Added an optional argument to xdebug_print_function_stack() to display your own message. (Patch by Mikko Koppanen).
All HTML output as generated by Xdebug now has a HTML "class" attribute for easy CSS formatting.
Support for PHP versions lower than PHP 5.1 have been dropped.
The PHP3 and GDB debugger engines have been removed.
Fixed support for showing $this in remote debugging sessions.
Fixed bug in formatting the display of "Variables in the local scope".
Possible fix for a threading issue where the headers gathering function would create stack overflows.
Possible fix for bug #324: xdebug_dump_superglobals() only dumps superglobals that were accessed before, and #478: XDebug 2.0.x can't use %R in xdebug.profiler_output_name if register_long_arrays is off.
Fixed bug #505: %s in xdebug.trace_output_name breaks functions traces.
Fixed bug #494: Private attributes of parent class unavailable when inheriting.
Fixed bug #486: feature_get -n breakpoint_types returns out of date list.
Fixed bug #476: Xdebug doesn't support PHP 5.3's exception chaining.
Fixed bug #472: Dead Code Analysis for code coverage messed up after goto.
Fixed bug #470: Catch blocks marked as dead code unless executed.
Fixed bug #469: context_get for function variables always appear as "uninitialized".
Fixed bug #468: Property_get on $GLOBALS works only at top-level, by adding GLOBALS to the super globals context.
Fixed bug #355: Function numbers in trace files weren't unique.
Fixed bug #340: Segfault while throwing an Exception.
Fixed bug #328: Private properties are incorrectly enumerated in case of extended classes.
Fixed bug #249: Xdebug's error handler messes up with the SOAP extension's error handler.
Fixed cases where private properties where shown for objects, but not accessible.
Added a patch by Lucas Nealan (firstname.lastname@example.org) and Brian Shire (email@example.com) of Facebook to allow connections to the initiating request's IP address for remote debugging.
Added the -p argument to the eval command as well, pending inclusion into DBGP.
Added the retrieval of a file's execution lines. I added a new un-official method called xcmd_get_executable_lines which requires the stack depth as argument (-d). You can only fetch this information for stack frames as it needs an available op-array which is only available when a function is executed.
Added a fake "CLASSNAME" property to objects that are returned in debug requests to facilitate deficiencies in IDEs that fail to show the "classname" XML attribute.
[2009-07-03] — Xdebug 2.0.5
Fixed bug #425: memory leak (around 40MB for each request) when using xdebug_start_trace.
Fixed bug #422: Segfaults when using code coverage with a parse error in the script.
Fixed bug #418: compilation breaks with CodeWarrior for NetWare.
Fixed bug #403: 'call' and 'return' breakpoints triggers both on call and return for class method breakpoints.
Fixed TSRM issues for PHP 5.2 and PHP 5.3. (Original patch by Elizabeth M. Smith).
Fixed odd crash bugs, due to GCC 4 sensitivity.
Support debugging into phars.
Basic PHP 5.3 support.
[2008-12-30] — Xdebug 2.0.4
Fixed for strange jump positions in path analysis.
Fixed issues with code coverage crashing on parse errors.
Fixed code code coverage by overriding more opcodes.
Fixed issues with Xdebug stalling/crashing when detaching from remote debugging.
Fixed crash on Vista where memory was freed with routines from a different standard-C library than it was allocated with. (Patch by Eric Promislow <firstname.lastname@example.org>).
Link against the correct CRT library. (Patch by Eric Promislow <email@example.com>).
Sort the symbol elements according to name. (Patch by Eric Promislow <firstname.lastname@example.org>).
Fixed support for mapped-drive UNC paths for Windows. (Patch by Eric Promislow <email@example.com>).
Fixed a segfault in interactive mode while including a file.
Fixed a crash in super global dumping in case somebody was strange enough to reassign them to a value type other than an Array.
Simplify version checking for libtool. (Patch by PGNet <firstname.lastname@example.org>).
Fixed display of unused returned variables from functions in PHP 5.3.
Fixed bug #241: Crash in xdebug_get_function_stack().
Fixed bug #240: Crash with xdebug.remote_log on Windows.
Fixed a segfault in rendering stack traces to error logs.
Fixed a bug that prevented variable names from being recorded for remote debug session while xdebug.collect_vars was turned off.
Fixed xdebug_dump_superglobals() in case no super globals were configured.
Removed support for Memory profiling as that didn't work properly.
Get rid of xdebug.default_enable setting and associated functions: xdebug_disable() and xdebug_enable().
Implemented support for four different xdebug.collect_params settings for stack traces and function traces.
Allow to trigger profiling by the XDEBUG_PROFILE cookie.
Correctly add namespace definitions to XML.
Added the xdebug namespace that adds extra information to breakpoints if available.
Stopped the use of elements for exception breakpoints, as that violates the protocol.
[2007-01-31] — Xdebug 2.0.0RC3
Removed the bogus "xdebug.allowed_clients" setting - it was not implemented.
Optimized used variable collection by switching to a linked list instead of a hash. This is about 30% faster, but it needed a quick conversion to hash in the case the information had to be shown to remove duplicate variable names.
Fixed bug #232: PHP log_errors functionality lost after enabling xdebug error handler when CLI is used.
Fixed problems with opening files - the filename could cause double free issues.
Fixed memory tracking as memory_limit is always enabled in PHP 5.2.1 and later.
Fixed a segfault that occurred when creating printable stack traces and collect_params was turned off.
[2006-12-24] — Xdebug 2.0.0RC2
Added new features
Implemented the "xdebug.var_display_max_children" setting. The default is set to 128 children.
Added types to fancy var dumping function.
Implemented FR #210: Add a way to stop the debug session without having to execute a script. The GET/POST parameter "XDEBUG_SESSION_STOP_NO_EXEC" works in the same way as XDEBUG_SESSION_STOP, except that the script will not be executed.
DBGP: Allow postmortem analysis.
DBGP: Added the non-standard function xcmd_profiler_name_get.
Fixed the issue where xdebug_get_declared_vars() did not know about variables there are in the declared function header, but were not used in the code. Due to this change expected arguments that were not send to a function will now show up as ??? in stack and function traces in PHP 5.1 and PHP 5.2.
Allow xdebug.var_display_max_data and xdebug.var_display_max_depth settings of -1 which will unlimit those settings.
DBGP: Sort super globals in Globals overview.
DBGP: Fixed a bug where error messages where not added upon errors in the protocol.
DBGP: Change context 1 from globals (superglobals + vars in bottom most stack frame) to just superglobals.
Fixed linking error on AIX by adding libm.
Fixed dead code analysis for THROW.
Fixed oparray prefill caching for code coverage.
Fixed the xdebug.remote_log feature work.
DBGP: Fixed a bug where $this did not appear in the local scoped context.
DBGP: Reimplemented property_set to use the same symbol fetching function as property_get. We now only use eval in case no type (-t) argument was given.
DBGP: Fixed some issues with finding out the classname, which is important for fetching private properties.
DBGP: Fixed usage of uninitialized memory that prevented looking up numerical array keys while fetching array elements not work properly.
Fixed bug #228: Binary safety for stream output and property fetches.
Fixed bug #227: The SESSION super global does not show up in the Globals scope.
Fixed bug #225: xdebug dumps core when protocol is GDB.
Fixed bug #219: Memory usage delta in traces don't work on PHP 5.2.0.
Fixed bug #215: Cannot retrieve nested arrays when the array key is a numeric index.
Fixed bug #214: The depth level of arrays was incorrectly checked so it would show the first page of a level too deep as well.
Fixed bug #213: Dead code analysis doesn't take catches for throws into account.
Fixed bug #211: When starting a new session with a different idekey, the cookie is not updated.
Fixed bug #209: Additional remote debugging session started when triggering shutdown function.
Fixed bug #208: Socket connection attempted when XDEBUG_SESSION_STOP.
Fixed PECL bug #8989: Compile error with PHP 5 and GCC 2.95.
[2006-10-08] — Xdebug 2.0.0RC1
Added new features
Implemented FR #70: Provide optional depth on xdebug_call_* functions.
Partially implemented FR #50: Resource limiting for variable display. By default only two levels of nested variables and max string lengths of 512 are shown. This can be changed by setting the ini settings xdebug.var_display_max_depth and xdebug.var_display_max_data.
Implemented breakpoints for different types of PHP errors. You can now set an 'exception' breakpoint on "Fatal error", "Warning", "Notice" etc. This is related to bug #187.
Added the xdebug_print_function_trace() function to display a stack trace on demand.
Reintroduce HTML tracing by adding a new tracing option "XDEBUG_TRACE_HTML" (4).
Made xdebug_stop_trace() return the trace file name, so that the following works: <?php echo file_get_contents( xdebug_stop_trace() ); ?>
Added the xdebug.collect_vars setting to tell Xdebug to collect information about which variables are used in a scope. Now you don't need to show variables with xdebug.show_local_vars anymore for xdebug_get_declared_vars() to work.
Make the filename parameter to the xdebug_start_trace() function optional. If left empty it will use the same algorithm to pick a filename as when you are using the xdebug.auto_trace setting.
Implemented dead code analysis during code coverage for: abstract methods, dead code after return, throw and exit, and implicit returns when a normal return is present.
Improved readability of stack traces.
Use PG(html_errors) instead of checking whether we run with CLI when deciding when to use HTML messages or plain text messages.
Fixed bug #203: PHP errors with HTML content processed incorrectly. This patch backs out the change that was made to fix bug #182.
Fixed bug #198: Segfault when trying to use a non-existing debug handler.
Fixed bug #197: Race condition fixes created too many files.
Fixed bug #196: Profile timing on Windows does not work.
Fixed bug #195: CLI Error after debugging session.
Added profiling aggregation functions (patch by Andrei Zmievski)
Implemented the "timestamp" option for the xdebug.trace_output_name and xdebug.profiler_output_name settings.
Added the xdebug.remote_log setting that allows you to log debugger communication to a log file for debugging. This can also be set through the "remote_log" element in the XDEBUG_CONFIG environment variable.
Added a "script" value to the profiler_output_name option. This will write the profiler output to a filename that consists of the script's full path (using underscores). ie: /var/www/index.php becomes var_www_index_php_cachegrind.out. (Patch by Brian Shire).
DBGp: Implemented support for hit conditions for breakpoints.
DBGp: Added support for conditions for file/line breakpoints.
DBGp: Added support for hit value checking to file/line breakpoints.
DBGp: Added support for "exception" breakpoints.
Added a cache that prevents the code coverage functionality from running a "which code is executable check" on every function call, even if they were executed multiple times. This should speed up code coverage a lot.
Speedup Xdebug but only gathering information about variables in scopes when either remote debugging is used, or show_local_vars is enabled.
Fixed bug #184: problem with control chars in code traces
Fixed bug #183: property_get -n $this->somethingnonexistent crashes the debugger.
Fixed bug #182: Errors are not html escaped when being displayed.
Fixed bug #180: collected includes not shown in trace files. (Patch by Cristian Rodriguez)
Fixed bug #178: $php_errormsg and Track errors unavailable.
Fixed bug #177: debugclient fails to compile due to Bison.
Fixed bug #92: xdebug_disable() doesn't disable the exception handler.
Fixed bug #68: Summary not written when script ended with "exit()".
Added new features
Added support for the new DBGp protocol for communicating with the debug
A computerized trace format for easier parsing by external programs.
The ability to set remote debugging features via the environment. This
allows an IDE to emulate CGI and still pass the configuration through to the
debugger. In CGI mode, PHP does not allow -d arguments.
Reimplementation of the tracing code, you can now only trace to file; this
greatly enhances performance as no string representation of variables need to
be kept in memory any more.
Re-implemented profiling support. Xdebug outputs information the same way
that cachegrind does so it is possible to use Kcachegrind as front-end.
Xdebug emits warnings when it was not loaded as a Zend extension.
Added showing private, protected and public to the fancy var_dump()
Added the setting of the TCP_NODELAY socket option to stop delays in
transferring data to the remote debugger client. (Patch by Christof J. Reetz)
DebugClient: Added setting for port to listen on and implemented running
the previous command when pressing just enter.
Added new functions
xdebug_get_stack_depth() to return the current stack depth level.
xdebug_get_tracefile_name() to retrieve the name of the tracefile. This is useful in case auto trace is enabled and you want to clean the trace file.
xdebug_peak_memory_usage() which returns the peak memory used in a script. (Only works when --enable-memory-limit was enabled)
Added feature requests
FR #5: xdebug_break() function which interupts the script for the debug engine.
FR #30: Dump current scope information in stack traces on error.
FR #88: Make the url parameter XDEBUG_SESSION_START optional. So it can be disabled and the user does not need to add it.
Added new php.ini settings
xdebug.auto_trace_file: to configure a trace file to write to as addition to the xdebug.auto_trace setting which just turns on tracing.
xdebug.collect_includes: separates collecting names of include files from the xdebug.collect_params setting.
xdebug.collect_return: showing return values in traces.
xdebug.dump_global: with which you can turn off dumping of super globals even in you have that configured.
xdebug.extended_info: turns off the generation of extended opcodes that are needed for stepping and breakpoints for the remote debugger. This is useful incase you want to profile memory usage as the generation of this extended info increases memory usage of oparrrays by about 33%.
xdebug.show_local_vars: turn off the showing of local variables in the top most stack frame on errors.
xdebug.show_mem_delta: show differences between current and previous memory usage on a function call level.
xdebug.trace_options: to configure extra options for trace dumping: o XDEBUG_TRACE_APPEND option (1)
xdebug_start_trace() now returns the filename of the tracefile (.xt is added to the requested name).
Changed default debugging protocol to dbgp instead of gdb.
Changed default debugger port from 17869 to 9000.
Changed trace file naming: xdebug.trace_output_dir is now used to configure a directory to dump automatic traces; the trace file name now also includes the pid (xdebug.trace_output_name=pid) or a crc32 checksum of the current working dir (xdebug.trace_output_name=crc32) and traces are not being appended to an existing file anymore, but simply overwritten.
Removed $this and $GLOBALS from showing variables in the local scope.
xdebug_get_function_trace/xdebug_dump_function_trace() because of the new idea of tracing.
Fixed bug #54: source command did not except missing -f parameter.
Fixed bug #53: Feature get misusing the supported attribute.
Fixed bug #51: Only start a debug session if XDEBUG_SESSION_START is passed as GET or POST parameter, or the DBGP_COOKIE is send to the server. Passing XDEBUG_SESSION_STOP as GET/POST parameter will end the debug session and removes the cookie again. The cookie is also passed to the remote handler backends; for DBGp it is added to the packet.
Fixed bug #49: Included file's names should not be stored by address.
Fixed bug #44: Script time-outs should be disabled when debugging.
Fixed bug #36: GDB handler using print causes segfault with wrong syntax
Fixed bug #33: Implemented the use of the ZEND_POST_DEACTIVATE hook. Now we can handle destructors safely too.
Fixed bug #32: Unusual dynamic variables cause xdebug to crash.
GDB: Added file/line to signals.
Fixed logging to adhere to the error_reporting setting.
Fixed bug #32: Unusual dynamic variables cause xdebug to
Fixed bug #31: & entity replaced after others, wrong HTML
Fixed crash bug when a function had
sprintf style parameters (ie. strftime()).
Added "id" attribute to <var /> elements in responses from the remove
debugger when the response method is XML. This makes it possible to distinguish
between unique elements by use of recursion for example.
Greatly cut down on the overhead that Xdebug causes on running scripts.
Fixed a bug with "quit" that would disable the extension.
Fixed a bug in the folding of recursive elements.
Implemented an argument to the "bt" command. If this is set to "full" all
local variables for a stack frame are showed too.
Updated licence: "PHP Licence" was renamed to "Xdebug Licence",
"The PHP Group" to "Derick Rethans" and "PHP" to "Xdebug".
Added the xdebug_time_index()
function which returns the time index since the start of the script.
Updated licence: "PHP Licence" was renamed to "Xdebug Licence",
"The PHP Group" to "Derick Rethans" and "PHP" to "Xdebug".
Implemented the "show-breakpoints" command which shows all currently
active breakpoints including conditions.
Implemented the "show-local" command (shows all local variables in the
current scope including all contents) and conditions for breakpoints in the
Added a fancy replacement function for var_dump which overloads the standard PHP
function while HTML errors are enabled.
Added dumping of super globals when an error occurs.
Added an XML transport layer for the remote debugger.
Fixed handling of 'continue' (in addition to 'cont').
Updated Xdebug to support Zend Engine 2 (PHP 5.0.0-dev).
Implemented the "eval" (evalutes PHP code) to the remote debugger.
Enabled support for Windows again.
directing profiling output to
Fixed the "init" state of the debugger, from now on you can print data
(like environment variables) from this state.
The array returned by get_function_trace() now includes the memory
footprint and timing information.
Automatic profiling added, including redirecting profiling output to
Added a new profiling mode: Stack-Dump.
Basic profiling added to Xdebug, including three new functions:
xdebug_start_profiling() that begins profiling process, xdebug_stop_profiling()
that ends the profiling process and xdebug_dump_function_trace() that dumps the
Implemented the "kill" (kills the running script) and "delete" (deletes
an already set breakpoint) command for the remote debugger.
Parameters to functions are no longer recorded by default; use the
xdebug.collect_params=1 setting in php.ini to turn it on again.
Made the xdebug server and client working under Windows.
Implemented the "next" (step over) and "finish" (step out) commands
for the remote debugger.
Lots of small bugfixes, under them memory leaks and crash bugs.
Implemented the "list" (source listing), "print" (printing variable
contents), "show" (show all variables in the scope), "step" (step through
execution) and "pwd" (print working directory) commands to the remote
Implemented class::method, object->method and file.ext:line style
Changed debugger port from 7869 to 17869.
Added xdebug.collect_params setting. If this setting is on (the default)
then Xdebug collects all parameters passed to functions, otherwise they
are not collected at all.
Implemented correct handling of include/require and eval.
Fixed bug which caused wrong filenames to be reported.
Added automatic starting of function traces (xdebug.auto_trace, defaulting to
Xdebug no longer supports PHP versions below PHP 4.3.0pre1.
Added gdb compatible debugger handler with support for simple (function only)
Fixed bug with argument lists.
Implemented remote debugger handler abstraction.
Added a php3 compatible debugger handler.
Fixed memory footprint readings by not counting memory used by xdebug.
Implemented gathering of parameters to internal functions. (Only works
with recent PHP 4.3.0-dev versions!)
Bugs, better performance and update of the xdebug_get_function_trace().
Add much better routine for getting data from Zend.
Xdebug no longer relies on PHP's output buffering mechanism. This caused
problems with PEAR.
Added PECL package.xml file to make xdebug installable
Flush the log file after every line during function tracing to file.
Removed the xdebug_* functions from the returned/showed function stracks
Rewrote xdebug_get_function_stack() and xdebug_get_function_trace() to return
data in multidimensional arrays.
Add support for classnames, variable include files and variable function
Implemented links to the PHP Manual in traces.
Added timestamps and memory usage to function traces
Fixed a crash when using user defined session handlers.
Implemented variable function names.
Unify showing unknown data.
Implemented much better parameter tracing for user defined
Renamed xdebug_get_function_trace() to xdebug_dump_function_trace().
Implemented new xdebug_get_function_trace() to return the function trace in
Added a parameter to xdebug_start_trace(). When this parameter is used,
xdebug will dump a function trace to the filename which this parameter
speficies.Fixed functions as parameters to functions
Fixed functions as parameters to functions
Fix logging to the systemlog
Make xdebug respect the value of the error_reporting setting
Added handling single-dimensional constant arrays as parameter to functions
Implemented function traces (xdebug_start_trace(), xdebug_stop_trace() and
Added support for Windows to xdebug
Implemented handling of static method calls (foo::bar())
Implemented correct handling of include(), require() and eval()
Fix removal of elements from the stack
Added ini_settings and functions to disable and enable showing stacktraces from within your PHP script
Added xdebug_memory_usage() which returns the amount of memory used by the PHP script