testing luup code on UI5 unit

I’ve got a VeraLite running UI5. I’m new to MiOS and Luup, but an experience programmer.

I’m hoping someone can point me to some very basic information. I’ve read through Luup Debugging - MiOS, but the only place I found in UI5 to enter test code is under Apps–>Develop Apps–>Test Luup code.

I entered the most basic code:
luup.log(“Hello world”)

And on clicking “Go” I saw a status box saying “Message sent successfully”. However, I cannot find the output anywhere… not in the logs or status bar.

What am I doing wrong? I cannot even begin to play with Luup until I get this most basic problem figured out?please help!

It goes to the Vera Log file … You can preview this from another browser window with:

http://YourVeraIPAddress/cgi-bin/cmh/log.sh?Device=LuaUPnP

But there is a lot of other stuff going there as well.
Also the default behavior is that output is not flushed right away … so it could be a while before you see the output. There are ways to modify your Vera so that it flushes after every message … but that uses more Vera CPU …
[hr]
Details are:
/etc/cmh/cmh.conf
ImmediatelyFlush Set to 1

Can I suggest installing the excellent [tt]Log Viewer[/tt] plugin?

…allows you to set a Lua Pattern to match keyword(s) in the log file (eg. “TEST”) and view just those lines in a separate browser window. It’s really an indispensable tool for Lua code debugging in the MiOS environment.

Ahhh… didn’t realize the log wasn’t updated real-time… that might have been the problem. Do i need to reboot after updating the conf file?