[packages/php-pecl-xdebug] update xdebug.ini

glen glen at pld-linux.org
Tue Jul 5 10:18:33 CEST 2016


commit be2e4d1220cea40f0b41273223df767588132c80
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Jul 5 11:17:32 2016 +0300

    update xdebug.ini
    
    previously configured values preserved, not overwritten
    including our file header

 xdebug.ini | 118 +++++++++++++++++++++++++++++++++++++++++++++++++++----------
 1 file changed, 100 insertions(+), 18 deletions(-)
---
diff --git a/xdebug.ini b/xdebug.ini
index 1258e39..cacf0c4 100644
--- a/xdebug.ini
+++ b/xdebug.ini
@@ -104,6 +104,10 @@ xdebug.cli_color = 1
 ;        xdebug.var_display_max_depth.
 ; -----  ------------------------------------------------------------------------
 ; 4      Full variable contents and variable name.
+; -----  ------------------------------------------------------------------------
+; 5      PHP serialized variable contents, without the name.
+;
+;        (New in Xdebug 2.3)
 ; =====  ========================================================================
 ;
 ; 1 in the CLI version of PHP it will not have the tool tip, nor in output
@@ -120,6 +124,9 @@ xdebug.cli_color = 1
 ; This setting, defaulting to 0, controls whether Xdebug should write the return
 ; value of function calls to the trace files.
 ;
+; For computerized trace files (xdebug.trace_format=1) this only works from
+; Xdebug 2.3 onwards.
+;
 ;
 ;xdebug.collect_return = 0
 
@@ -140,7 +147,7 @@ xdebug.cli_color = 1
 ; -----------------------------------------------------------------------------
 ; xdebug.coverage_enable
 ;
-; Only in Xdebug versions > 2.2
+; Only in Xdebug versions >= 2.2
 ;
 ; Type: boolean, Default value: 1
 ;
@@ -169,14 +176,19 @@ xdebug.cli_color = 1
 ;
 ; Type: string, Default value: Empty
 ;
-; * = COOKIE, FILES, GET, POST, REQUEST, SERVER, SESSION. These seven settings
-; control which data from the superglobals is shown when an error situation
-; occurs. Each php.ini setting can consist of a comma seperated list of
-; variables from this superglobal to dump, but make sure you do not add spaces
-; in this setting. In order to dump the REMOTE_ADDR and the REQUEST_METHOD when
-; an error occurs, add this setting:
+; * can be any of COOKIE, FILES, GET, POST, REQUEST, SERVER, SESSION. These
+; seven settings control which data from the superglobals is shown when an error
+; situation occurs.
+;
+; Each of those php.ini setting can consist of a comma separated list of
+; variables from this superglobal to dump, or ``*`` for all of them. Make sure
+; you do not add spaces in this setting.
+;
+; In order to dump the REMOTE_ADDR and the REQUEST_METHOD when an error occurs,
+; and all GET parameters, add these settings:
 ;
 ;     xdebug.dump.SERVER = REMOTE_ADDR,REQUEST_METHOD
+;     xdebug.dump.GET = *
 ;
 ;
 ;xdebug.dump.* = Empty
@@ -187,7 +199,7 @@ xdebug.cli_color = 1
 ; Type: boolean, Default value: 1
 ;
 ; Controls whether the values of the superglobals as defined by the
-; xdebug.dump.* settings whould be shown or not.
+; xdebug.dump.* settings should be shown or not.
 ;
 ;
 ;xdebug.dump_globals = 1
@@ -344,6 +356,70 @@ xdebug.cli_color = 1
 ;xdebug.file_link_format =
 
 ; -----------------------------------------------------------------------------
+; xdebug.force_display_errors
+;
+; Only in Xdebug versions 2.3
+;
+; Type: int, Default value: 0
+;
+; If this setting is set to ``1`` then errors will **always** be displayed, no
+; matter what the setting of PHP's display_errors [1] is.
+;
+; [1] http://php.net/manual/en/errorfunc.configuration.php#ini.display-errors
+;
+;
+;xdebug.force_display_errors = 0
+
+; -----------------------------------------------------------------------------
+; xdebug.force_error_reporting
+;
+; Only in Xdebug versions 2.3
+;
+; Type: int, Default value: 0
+;
+; This setting is a bitmask, like error_reporting [1]. This bitmask will be
+; logically ORed with the bitmask represented by error_reporting [2] to dermine
+; which errors should be displayed. This setting can only be made in php.ini and
+; allows you to force certain errors from being shown no matter what an
+; application does with ini_set() [3].
+;
+; [1] http://php.net/manual/en/errorfunc.configuration.php#ini.error-reporting
+; [2] http://php.net/manual/en/errorfunc.configuration.php#ini.error-reporting
+; [3] http://php.net/manual/en/function.ini-set.php
+;
+;
+;xdebug.force_error_reporting = 0
+
+; -----------------------------------------------------------------------------
+; xdebug.halt_level
+;
+; Only in Xdebug versions 2.3
+;
+; Type: int, Default value: 0
+;
+; This setting allows you to configure a mask that determines whether, and
+; which, notices and/or warnings get converted to errors. You can configure
+; notices and warnings that are generated by PHP, and notices and warnings that
+; you generate yourself (by means of trigger_error()). For example, to convert
+; the warning of strlen() (without arguments) to an error, you would do:
+;
+;     ini_set('xdebug.halt_level', E_WARNING);
+;     echo "Hi!\n";
+;
+; Which will then result in the showing of the error message, and the abortion
+; of the script. ``echo "Hi!\n";`` will not be executed.
+;
+; The setting is a bit mask, so to convert all notices and warnings into errors
+; for all applications, you can set this in php.ini:
+;
+;     xdebug.halt_level=E_WARNING|E_NOTICE|E_USER_WARNING|E_USER_NOTICE
+;
+; The bitmask only supports the four level that are mentioned above.
+;
+;
+;xdebug.halt_level = 0
+
+; -----------------------------------------------------------------------------
 ; xdebug.idekey
 ;
 ; Type: string, Default value: *complex*
@@ -396,6 +472,11 @@ xdebug.max_nesting_level = 250
 ; you do not want that, you can set this setting to 0, but check first if it's
 ; not smarter to turn off html_errors.
 ;
+; You can also use ``2`` as value for this setting. Besides formatting the
+; var_dump() output nicely, it will also add filename and line number to the
+; output. The xdebug.file_link_format setting is also respected. *(New in Xdebug
+; 2.3)*
+;
 ;
 ;xdebug.overload_var_dump = 1
 
@@ -530,8 +611,7 @@ xdebug.max_nesting_level = 250
 ;
 ; Can be either 'php3' which selects the old PHP 3 style debugger [1] output,
 ; 'gdb' which enables the GDB like debugger interface or 'dbgp' - the debugger
-; protocol [2]. The DBGp protocol is more widely supported by clients. See more
-; information in the introduction for Remote Debugging.
+; protocol [2]. The DBGp protocol is the only supported protocol.
 ;
 ; [1] http://www.php.net/manual/en/debugger.php
 ; [2] http://xdebug.org/docs-dbgp.php
@@ -606,7 +686,7 @@ xdebug.max_nesting_level = 250
 ; -----------------------------------------------------------------------------
 ; xdebug.scream
 ;
-; Only in Xdebug versions > 2.1
+; Only in Xdebug versions >= 2.1
 ;
 ; Type: boolean, Default value: 0
 ;
@@ -695,13 +775,15 @@ xdebug.max_nesting_level = 250
 ;
 ; Fields for the computerized format:
 ;
-; ===========  =====  ===========  ===========  ==========  ============  =============  ===========================================  ================================  ========  ===========
-; Record type  1      2            3            4           5             6              7                                            8                                 9         10
-; ===========  =====  ===========  ===========  ==========  ============  =============  ===========================================  ================================  ========  ===========
-; Entry        level  function #   always '0'   time index  memory usage  function name  user-defined (1) or internal function (0)    name of the include/require file  filename  line number
-; -----------  -----  -----------  -----------  ----------  ------------  -------------  -------------------------------------------  --------------------------------  --------  -----------
-; Exit         level  function #   always '1'   time index  memory usage  empty
-; ===========  =====  ===========  ===========  ==========  ============  =============  ===========================================  ================================  ========  ===========
+; ===========  =====  ===========  ===========  ==========  ============  =============  ===========================================  ================================  ========  ===========  =================  =============================================================
+; Record type  1      2            3            4           5             6              7                                            8                                 9         10           11                 12 - ...
+; ===========  =====  ===========  ===========  ==========  ============  =============  ===========================================  ================================  ========  ===========  =================  =============================================================
+; Entry        level  function #  always '0'  time index  memory usage  function name  user-defined (1) or internal function (0)  name of the include/require file  filename  line number  no. of parameters  parameters (as many as specified in field 11) - tab separated
+; -----------  -----  -----------  -----------  ----------  ------------  -------------  -------------------------------------------  --------------------------------  --------  -----------  -----------------  -------------------------------------------------------------
+; Exit         level  function #  always '1'  time index  memory usage  empty
+; -----------  -----  -----------  -----------  ----------  ------------  -------------  -------------------------------------------  --------------------------------  --------  -----------  -----------------  -------------------------------------------------------------
+; Return       level  function #  always 'R'  empty       return value  empty
+; ===========  =====  ===========  ===========  ==========  ============  =============  ===========================================  ================================  ========  ===========  =================  =============================================================
 ;
 ; See the introduction of Function Traces for a few examples.
 ;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-xdebug.git/commitdiff/be2e4d1220cea40f0b41273223df767588132c80



More information about the pld-cvs-commit mailing list