[Feedback] Python Print

Are you still able to use print commands for trouble shooting purposes. I dropped a button on a screen, configured the click event to just do print “hello” but I do not see it appear in the console. Does that now work in Perspective?

Python scripts configured in Perspective are executing on the gateway - web browsers don’t have the ability to run Python. So, your print statement is probably visible in the wrapper.log file, but nowhere else. system.util.getLogger would allow you to create a logger, with messages that will show up in the gateway’s log output (Status -> Diagnostics -> Logs in the gateway web interface).

1 Like