Debug on module startup in Ignition 8.3

Hello everyone,

With the release of Ignition 8.3, hot-reload of modules has been removed, and I’m running into an issue related to debugging startup logic.

In previous versions, if I needed to debug code executed during module startup, I would simply place a breakpoint, start the debugger, and restart the module.

In Ignition 8.3, however, installing or updating a module requires a full Gateway restart. This makes it difficult to debug code that runs during startup, as I’m unable to attach the debugger while the Gateway is starting.

How could I effectively debug the startup logic of my modules in Ignition 8.3? Am I missing a step when trying to attach the debugger during Gateway startup?

Thanks

3 Likes

ignition.conf is already seeded with these, which you have presumably uncommented at this point:

#wrapper.java.additional.7=-Xdebug
#wrapper.java.additional.8=-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=*:8000

change suspend=n to suspend=y and nothing will happen until your debugger has connected.

Thanks Kevin for the (extermely) quick response. That seems to have done it!