ZeroBrane doesn't print output to console

Not sure where else to post this. I recently moved to a Windows dev environment and I’m trying to get things setup similar to how they were on my Mac. I have ZeroBrane up and running, however I noticed that none of my print statements show up in the “Output” window.

The only way I get the print statements to show up is to include require(“mobdebug”).start() in main.lua, but this means I can’t edit any files while the simulator is running (unless I run as scratchpad). I didn’t have this issue on my Mac. Does anyone know how to fix this?

I guess it’s some kind of a ZeroBug issue. I use Sublime Text on Windows and it works perfectly. I would recommend using it without Corona autocomplete plugin.

Daniel

No, it’s not a ZBS issue (at least to my knowledge). On Mac the output of the simulator is sent to the standard output, but on Windows it appears to be only sent to the console, but not to the standard output.

During debugging ZBS redirects “print” output in a way that delivers all messages printed remotely to the Output window (and also pretty-prints the result). Unfortunately there is not much I can do during running; one workaround is to enable the Corona SDK console, which is hidden by default. You’ll then be able to see there all the messages printed by your application. See this FAQ answer for details: http://studio.zerobrane.com/doc-faq.html#how-do-i-show-corona-sdk-console-window-on-windows

Paul.

Hi Paul, thanks for taking the time to explain. Using the console is a decent work around, although what I really like about the Output window is that when there’s an error I can simply click the line and ZBS takes me right to it.

I hope that perhaps this feature can be implemented in a future release. I’ll continue to use ZBS either way!

> I hope that perhaps this feature can be implemented in a future release.

@Vince, I talked to the Corona folks and there is indeed a way to provide that functionality; I should be able to incorporate that shortly. Paul.

@Vince, I pushed a change to the github repository that should fix this issue; you can download the current version here: https://github.com/pkulchenko/ZeroBraneStudio/archive/master.zip. You don’t need to configure anything (and can remove the line from the FAQ). I’ll update the documentation shortly. Let me know how it works for you.

Wow! Paul, thank you so much for following through on this. In my intitial testing it looks like everything is working beautifully. Now I can seemlessly switch between my Mac and Windows environments.

I’ll do some more testing tomorrow. Thanks again!

I guess it’s some kind of a ZeroBug issue. I use Sublime Text on Windows and it works perfectly. I would recommend using it without Corona autocomplete plugin.

Daniel

No, it’s not a ZBS issue (at least to my knowledge). On Mac the output of the simulator is sent to the standard output, but on Windows it appears to be only sent to the console, but not to the standard output.

During debugging ZBS redirects “print” output in a way that delivers all messages printed remotely to the Output window (and also pretty-prints the result). Unfortunately there is not much I can do during running; one workaround is to enable the Corona SDK console, which is hidden by default. You’ll then be able to see there all the messages printed by your application. See this FAQ answer for details: http://studio.zerobrane.com/doc-faq.html#how-do-i-show-corona-sdk-console-window-on-windows

Paul.

Hi Paul, thanks for taking the time to explain. Using the console is a decent work around, although what I really like about the Output window is that when there’s an error I can simply click the line and ZBS takes me right to it.

I hope that perhaps this feature can be implemented in a future release. I’ll continue to use ZBS either way!

> I hope that perhaps this feature can be implemented in a future release.

@Vince, I talked to the Corona folks and there is indeed a way to provide that functionality; I should be able to incorporate that shortly. Paul.

@Vince, I pushed a change to the github repository that should fix this issue; you can download the current version here: https://github.com/pkulchenko/ZeroBraneStudio/archive/master.zip. You don’t need to configure anything (and can remove the line from the FAQ). I’ll update the documentation shortly. Let me know how it works for you.

Wow! Paul, thank you so much for following through on this. In my intitial testing it looks like everything is working beautifully. Now I can seemlessly switch between my Mac and Windows environments.

I’ll do some more testing tomorrow. Thanks again!