Wednesday 24 March 2021

debugging install4j windows service

Attaching a debugger to a Windows service running an install4j application is very simple once you understand that VM parameters to an install4j executable need to be prefixed with -J

Take the debug command line options, typically somehting like:

-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 

prefix the -J and insert into the windows service "Start parameters" field:

start the service and connect your debugger!