Allow scope when printing stack trace.