"attempt to call a string value" error on Vera luup engine
-
I have some code failing on Vera from time to time. All I got is:
attempt to call a string value
and usually a luup.reload will fix it. It should be something related to startup and scene collision.
Is there a way to really trace lua calls? I'm a DIY regarding LUA and I'm sure there should be a better way to trace and debug errors.
I'll try to code something in order to detect this situation and reload luup, because it's blocking my scenes.
Yes, I know I should migrate all my logic to openLuup, but I can't at the moment.
-
For Vera, you’re probably limited to rather manual methods. In openLuup development, I often run the entire system in debug mode within my development system. There is a debug library, with tools to profile code and trace calls, but I don’t think you can use that (I may be wrong.)