Sunday, December 16, 2007

How to debug variables and conditions in IzPack



From IzPack 3.11 on, there's a built-in debugger for variables and conditions. The debugger is activated when the installer is called with -DTRACE=true as JVM option.




Ex.1:


java -DTRACE=true -jar myInstaller.jar




The debugger shows up as a panel in the east of the InstallerFrame or if the guiModifier showDebugWindow is set to true, it will show up as seperate window.




Ex.2:


<modifier value="true" key="showDebugWindow">








2 comments:

  1. Thx for the debug hint. Surely very helpful :)

    ReplyDelete
  2. Thanks for the work on IzPack.

    Wonder, is it possible to debug deeper into the conditions (eg debug levels)? Currently I have several problems with <condition type="or"> objects and I would like to see the results for the subconditions.

    ReplyDelete