Debug Mode

    Note: Before Apache APISIX 2.10, basic debug mode was enabled by setting apisix.enable_debug = true in the conf/config.yaml file.

    For example, if we are using two plugins limit-conn and for a Route /hello, we will receive a response with the header Apisix-Plugins: limit-conn, limit-count when we enable the basic debug mode.

    If the debug information cannot be included in a response header (say when the plugin is in a stream subsystem), the information will be logged in the error log at a warn level.

    Enable advanced debug mode by modifying the configuration in conf/debug.yaml file.

    The checker checks every second for changes to the configuration files. An #END flag is added to let the checker know that it should only look for changes till that point.

    The checker would only check this if the file was updated by checking its last modification time.

    You can also enable the advanced debug mode to take effect on particular requests.

    For example, to dynamically enable advanced debugging mode on requests with a particular header name X-APISIX-Dynamic-Debug you can configure:

    This will enable the advanced debug mode for requests like: