Debug JET Applications
Use this topic to debug JET applications.
Debugging Tips
For debugging applications on a device running Junos OS, you can configure the trace file option with the
edit system services extension-service traceoptions
statement. You need to enable this statement on the Junos OS device before writing the sample applications.The Junos service process (jsd) is supported only on the Routing Engine running in primary mode. It is not supported on the backup Routing Engine.
To eliminate any firewall issues, use an on-device application to test.
For notification applications, verify that your client IP source address (the address from which the connection is established) is added to the list of allowed clients in the jsd notification configuration.
Ensure that the maximum number of notification connections does not exceed the number configured on the device. Use the following command to see the clients:
netstat -a | grep 1883
How to Invoke the Debugger During Install
For non-daemonized applications that run on the router, you can invoke the debugger at the same time that you install the application. To load your application along with the debugger:
Issue: Cannot Connect to jsd
Use this procedure if your application cannot connect to jsd.