I have a bunch of NSLog statements in my code which I use for debugging. Every time I run my Project I'd like to start from a fresh console screen. Is there any command I can embed in my code which can do this?
Go to Xcode → Preferences → Debugging → On Start → "Show Console".
When in the console (Debug mode), use:
Xcode > Debug > Debug Workflow > Clear Console
Keyboard Shortcut: Command ⌘+K
print("any value", terminator: Array(repeating: "\n", count: 100).joined())
I think the only thing you can is
for(int i= 0; i < 100; i++) NSLog(@" ");
just like in good old MS-DOS :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With