Xdebug parameter Configuration Detailed

Source: Internet
Author: User
Tags stack trace

Installation:

Pre-compiling module

It is easy to install a precompiled module. Just put them in a directory and add the following to PHP.ini: (Don't forget to change the path and file name to your own value and make sure you're using the full path)

Zend_extension_ts = "C:/php/modules/php_xdebug.dll"

Basic Features:

Related parameter settings

Xdebug.default_enable

Type: Boolean default value: On

If this is set to ON, the stack trace will be displayed by default in the Error event. You can prevent the display of stacked traces by using xdebug_disable () in your code. Because this is one of the basic functions of the xdebug, it is advisable to set this parameter to ON.

Xdebug.max_nesting_level

Type: Integer default value: 100

The value of this setting was the maximum level of nested functions that are allowed before the script'll be aborted.

Limits the access depth of infinite recursion. The value set for this parameter is the maximum access depth of the nested program allowed before the script fails.

Stack trace:

Related parameter settings

Xdebug.dump_globals

Type: Boolean default value: 1

Limit whether to display the value of a xdebug.dump.* variable defined by the set

For example, Xdebug.dump.SERVER = Request_method,request_uri,http_user_agent will print the PHP Super global variable $_server[' Request_method ', $_server [' Request_uri '] and $_server[' http_user_agent '].

Xdebug.dump_once

Type: Boolean default value: 1

Limit whether the value of a super global variable should be dumped in all error environments (when set to off) or only at the beginning (when set to ON)

xdebug.dump_undefined

Type: Boolean default value: 0

If you want to dump an undefined value from a super global variable, you should set this parameter to ON, otherwise it will be set to off

Xdebug.show_exception_trace

Type: integer default value: 0

When this parameter is set to 1 o'clock, even if an exception is caught, Xdebug will still force exception tracking when an exception occurs.

Xdebug.show_local_vars

Type: integer default value: 0

When this parameter is set to not equal to 0 o'clock, the stack dump generated by xdebug in the wrong environment also displays all local variables, including variables that have not been initialized at the top. Note that this produces a lot of information and is therefore closed by default.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.