--debug option to print stack trace on error