mirror of
https://github.com/coredns/coredns.io.git
synced 2024-04-21 12:32:00 +00:00
28 lines
493 B
Markdown
28 lines
493 B
Markdown
+++
|
|
title = "debug"
|
|
description = "*debug* disables the automatic recovery upon a crash so that you'll get a nice stack trace."
|
|
weight = 6
|
|
tags = [ "plugin", "debug" ]
|
|
categories = [ "plugin" ]
|
|
date = "2017-10-20T08:48:19.234792"
|
|
+++
|
|
|
|
Note that the *errors* plugin (if loaded) will also set a `recover` negating this setting. The main
|
|
use of *debug* is to help testing.
|
|
|
|
## Syntax
|
|
|
|
~~~ txt
|
|
debug
|
|
~~~
|
|
|
|
## Examples
|
|
|
|
Disable the ability to recover from crashes:
|
|
|
|
~~~ corefile
|
|
. {
|
|
debug
|
|
}
|
|
~~~
|