Community Forums
Results 1 to 4 of 4

Thread: How to attach a debugger to an installer?

  1. #1
    Join Date
    Nov 2007

    Question How to attach a debugger to an installer?

    Hello guys,

    we are developing a complex installer which extensively uses custom code and custom plugins. We need to be able to debug the code with a more sophisticated approach than just dropping lines to the console here and then.

    Therefore, I would like to ask if there is any way to attach a debugger (like Eclipse debugger) to an installer built by IA.

    I have thought about building a Java-only installer and then somehow attach it to eclipse, but am wondering if there is anyone with experience about this topic here in the forum.


  2. #2
    Join Date
    Mar 2006
    Paris, France


    Last edited by pv7721; 08-08-2012 at 11:25 AM. Reason: macrovision -> flexerasoftware

  3. #3
    Join Date
    May 2006


    For debugging my custom code through IntelliJ, I use this in the installer:

    Project>Config>Additional Installer Arguments (without the quotes):
    "-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"

    Then in my IDE I set up remote debugging on port 5005 of localhost or whichever machine you are running the installer on.

    Unfortunately, I've yet to figure out how to get the installer to accept those parameters at the command line, rather than coded into the project. If anyone knows the proper way to do that, please share!

  4. #4
    Join Date
    Aug 2017

    Remote Debugging

    Thanks for this thread. I have recently inherited a IA2014 project and was needing to get some better debugging than what is offered with the command line debug flags. In order to run the install with remote debugging you can use set the environment variable options with the flags set in rnavarette's reply. This has greatly enhanced my ability to see what is going on with the installer during runtime.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts