diff --git a/native/src/debug/basic.rs b/native/src/debug/basic.rs index 5338d0d9..8a712038 100644 --- a/native/src/debug/basic.rs +++ b/native/src/debug/basic.rs @@ -174,9 +174,13 @@ impl Debug { lines.push(key_value("Render:", self.render_durations.average())); lines.push(key_value("Message count:", self.message_count)); lines.push(String::from("Last messages:")); - lines.extend( - self.last_messages.iter().map(|msg| format!(" {}", msg)), - ); + lines.extend(self.last_messages.iter().map(|msg| { + if msg.len() <= 100 { + format!(" {}", msg) + } else { + format!(" {:.100}...", msg) + } + })); lines }