Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: formatting
Remote Debugging

Installers can be debugged using remote debugging:

  1. Place a breakpoint in com.izforge.izpack.installer.bootstrap.Installer.main(String[] args)
  2. Run the command with the appropriate debug agent settings
  3. Attach to the process in the debugger

E.g.

...

Code Block
java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005 -jar installer.jar

The above specifies to suspend execution of the installer until the debugger attaches on port 5005.

Note

...

if the installer requires elevated privileges, it should be run as an administrator.

This is required as the installer relaunches itself if elevated permissions are needed.

See Also

...