add a couple tips about debugging configs to the README

This commit is contained in:
Havoc Pennington 2012-04-12 00:54:14 -04:00
parent 4add0330d8
commit d14d8cae78

View File

@ -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.