Clear simulator console log from code?

Don’t think this has been asked before, I can’t find an answer at least… I wondered whether it was possible to clear the simulator console log from code?

I’m debugging and printing A LOT of stuff to the log (e.g. at the moment, the co-ordinates of an object as it traverses the screen, hundreds of lines of output), then making changes to my code and reloading the simulator to observe changes. At the moment I’m having to clear the log via the context menu (or CMD+K) before each reload, it’d be handy if I could stick a line of code into my app that eliminates this step, e.g. console.clear() so I start with a nice empty log when my app starts again.

Thanks!

No not possible on Windows machine and I think also not possible on Mac.

In any case, there is no clear-console command.

Don’t think this has been asked before, I can’t find an answer at least… I wondered whether it was possible to clear the simulator console log from code?

I’m debugging and printing A LOT of stuff to the log (e.g. at the moment, the co-ordinates of an object as it traverses the screen, hundreds of lines of output), then making changes to my code and reloading the simulator to observe changes. At the moment I’m having to clear the log via the context menu (or CMD+K) before each reload, it’d be handy if I could stick a line of code into my app that eliminates this step, e.g. console.clear() so I start with a nice empty log when my app starts again.

Thanks!

https://forums.coronalabs.com/topic/69855-automatically-clear-simulator-output/?hl=%2Bclear+%2Blog+%2Bautomatically

Had the same idea a few weeks ago :slight_smile:

Someone else back then added the feature request already - you could/should just add your votes I guess.

http://feedback.coronalabs.com/forums/188732-corona-feature-requests-feedback/suggestions/31023559-corona-simulator

Voted!

No not possible on Windows machine and I think also not possible on Mac.

In any case, there is no clear-console command.

Don’t think this has been asked before, I can’t find an answer at least… I wondered whether it was possible to clear the simulator console log from code?

I’m debugging and printing A LOT of stuff to the log (e.g. at the moment, the co-ordinates of an object as it traverses the screen, hundreds of lines of output), then making changes to my code and reloading the simulator to observe changes. At the moment I’m having to clear the log via the context menu (or CMD+K) before each reload, it’d be handy if I could stick a line of code into my app that eliminates this step, e.g. console.clear() so I start with a nice empty log when my app starts again.

Thanks!

https://forums.coronalabs.com/topic/69855-automatically-clear-simulator-output/?hl=%2Bclear+%2Blog+%2Bautomatically

Had the same idea a few weeks ago :slight_smile:

Someone else back then added the feature request already - you could/should just add your votes I guess.

http://feedback.coronalabs.com/forums/188732-corona-feature-requests-feedback/suggestions/31023559-corona-simulator

Voted!