Console window randomly closes on Mac

For a while now I’ve had a problem where my console window disappears and I have to quit and restart Corona to reactivate the console.  I started paying more attention to it lately and found that it seems to be closing randomly - or after a period of use.

At first I thought it was related to my use of multiple monitors so I tried

window >> bring all to front  &   window >> center

That didn’t help.  This has been a persistent problem for at least a year but restarting Corona is no big deal - unless I’m in the middle of a super debug session and I need the content from the console that has just disappeared, which is what is happening now.

Has anyone else experienced this or found a solution?

The exact same thing has been happening to me for a long time too. I also have to quit and restart Corona. I haven’t paid attention to it to find if it follows a pattern or not. 

This is has been around for at least a year. don’t worry and keep coding.

I’ve noticed it will close if you flood it with messages, like prints inside an enterFrame listener.  If anyone can find other causes let us know.

Rob

I’ve also had this problem for at least a year, usually just a minor inconvenience but still annoying.

Prints in enterFrame listeners certainly make it more likely to happen but even when I’ve commented out all repeating prints such as that, it still crashes after some time. Maybe a memory issue?

Same!    Especially when I turn all the print statements on in my game.  *poof* 

When I have print statements turned up to the max is when I’m debugging  :frowning:

I forgot that you can launch without the console.  It feels more natural to me to have logging displayed in the terminal anyway.  So I’ve gone back to launching the simulator with a script like this:

“/Applications/Corona/Corona Simulator.app/Contents/MacOS/Corona Simulator” -no-console yes &

screenshot: tmux split window with vim and console logging below