in debug mode print out stack regardless of the exception