Here we'll see how to remotely debug our Agent. This assumes we have an IntelliJ IDEA IDE up and running, and have already imported the eclipse-iofog/Agent github repository project we are going to debug.
The project starts running and generating all the log messages of a regular launch in the terminal window. IntelliJ IDEA will intercept the execution at the breakpoint. From here the management is the same as for a regular Java application using your preferred IDE.
Default log file storage location: /var/log/iofog-agent