Eaiser way to debug gateway scripts?

I’m doing some gateway scripting and have to write ‘debug data’ to a table in our database. It’s so tedious and time-consuming.

Does anyone know of an easier way to debug gateway scripts?

Use the python print keyword or system.util.getLogger: system.util.getLogger - Ignition User Manual 8.1 - Ignition Documentation

print goes to wrapper.log files, the logger will go to both gateway logs and wrapper.log files.

1 Like

If possible I always write and debug code in vision environment and after finalize it I copy it to the gateway. Most of the time it is possible.

Gateway script debugging is the same whether it’s Vision or Perspective, as it doesn’t apply to either. You’ll always need to use the gateway scope to debug them e.g. with what Kevin mentioned