only print StackTrace if debug is enable