From d14d8cae780a680d309cb0c2a3bec096ed528ca8 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Thu, 12 Apr 2012 00:54:14 -0400 Subject: [PATCH] add a couple tips about debugging configs to the README --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 21949e64..a5dce213 100644 --- a/README.md +++ b/README.md @@ -389,6 +389,15 @@ newlines separating the numbers. See the spec for full details on concatenation. +## Debugging + +If you have trouble with your configuration, some useful tips. + + - Set the Java system property `-Dconfig.trace=loads` to get + output on stderr describing each file that is loaded. + - Use `myConfig.root().render()` to get a `Config` printed out as a + string with comments showing where each value came from. + ## Future Directions Here are some features that might be nice to add.