From caf1086122d1e39b9f113c2778023225ac0283ed Mon Sep 17 00:00:00 2001 From: Ryan LeFevre Date: Thu, 1 Aug 2013 22:06:07 -0400 Subject: [PATCH] Update README --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index dac8d83..c4e63f3 100644 --- a/README.md +++ b/README.md @@ -142,6 +142,16 @@ png = psd.image.to_png # reference to PNG data psd.image.save_as_png 'path/to/output.png' # writes PNG to disk ``` +**Debugging** + +If you run into any problems parsing a PSD, you can enable debug logging via the `PSD_DEBUG` environment variable. For example: + +``` bash +PSD_DEBUG=STDOUT bundle exec examples/parse.rb +``` + +You can also give a path to a file instead. + ## To-do There are a few features that are currently missing from PSD.rb.