provide stack trace in debug mode