Summary
How to attach the free, open-source Eclipse IDE Debugger to an InstallAnywhere installer/uninstaller, primarily for troubleshooting Custom Code.
Synopsis
The Eclipse Integrated Development Environment (IDE) is free, open-source software, which supports developing Java-based applications. This article describes how to attach the free, open-source Eclipse IDE Debugger to an InstallAnywhere installer/uninstaller, primarily for troubleshooting Custom Code.
NOTE: Eclipse 3.7.2 was used as the basis for the steps in Eclipse, but the steps should be similar for other Eclipse versions.
Discussion
Attaching Eclipse Debugger to Installer Built With InstallAnywhere
Follow these steps to attach the Eclipse Debugger to an installer built with InstallAnywhere:
- Open the Eclipse IDE.
- Select the Run > Debug Configurations menu option.
- Right click the Remote Java Application icon on the lefthand menu.
- Select the New context-menu option.
- In the Project field, point to the Eclipse Project containing the Custom Code included in the installer that will be run for debugging purposes.
- Make sure that the Connection Type > Standard (Socket attach) dropdown menu option is selected.
- For the Host field, if you're running the installer locally on the machine, make sure that the value is the following value:
localhost
Otherwise, the Host field should contain the IP address of the host machine on which the installer will be running. - For the Port field, make sure that the value is for an open port that matches the address parameter value passed in Step 12, below, which would be the following value, for this example:
5005
As long as the port is open and the Port field value in the Eclipse IDE and the address parameter value specified in the InstallAnywhere project match, this value is otherwise arbitrary. - Click the Apply button to save the changes.
- Open the project in InstallAnywhere IDE running in the Advanced Designer Mode.
- Navigate to the Project > JVM Settings > Installer Settings > Optional Installer Arguments Section.
- Set the following value in the Additional Arguments field:
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005 - Build the project.
- Run the installer.
- Click the Debug button in the Eclipse IDE for the Remote Java Application Debug Configuration, configured in Steps 5-8.
Attaching Eclipse Debugger to Uninstaller Built With InstallAnywhere
Follow these steps to attach the Eclipse Debugger to an uninstaller built with InstallAnywhere:
- Open the Eclipse IDE.
- Select the Run > Debug Configurations menu option.
- Right click the Remote Java Application icon on the lefthand menu.
- Select the New context-menu option.
- In the Project field, point to the Eclipse Project containing the Custom Code included in the installer that will be run for debugging purposes.
- Make sure that the Connection Type > Standard (Socket attach) dropdown menu option is selected.
- For the Host field, if you're running the installer locally on the machine, make sure that the value is the following value:
localhost
Otherwise, the Host field should contain the IP address of the host machine on which the installer will be running. - For the Port field, make sure that the value is for an open port that matches the address parameter value passed in Step 16, below, which would be the following value, for this example:
5005
As long as the port is open and the Port field value in the Eclipse IDE and the address parameter value specified in the InstallAnywhere project match, this value is otherwise arbitrary. - Click the Apply button to save the changes.
- Open the project in InstallAnywhere IDE running in the Advanced Designer Mode.
- Navigate to the Install Task/View, where all of the Install Actions and Panels are defined.
- Expand the User Installation Directory node with the $USER_INSTALL_DIR$ icon.
- Expand the Uninstaller Directory node with the _$PRODUCT_NAME$_installation name, by default.
- Select the Properties View of the Create Uninstaller Action icon with the Change $PRODUCT_NAME$ name, by default.
- Click the Edit Properties button.
- Set the following property and property value in the popup dialog:
lax.nl.java.option.additional=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005 - Build the project.
- Run the installer.
- Run the uninstaller.
- Click the Debug button in the Eclipse IDE for the Remote Java Application Debug Configuration, configured in Steps 5-8.
Additional Information
The free, open-source Eclipse IDE is developed by the Eclipse open-source community, whose projects are focused on building an open- development platform comprised of extensible frameworks, tools and runtimes for building, deploying and managing software across the lifecycle. The Eclipse Foundation is a not-for-profit, member supported corporation that hosts the Eclipse projects and helps cultivate both an open-source community and an ecosystem of complementary products and services.
- Click here for more information.
- Click here to download the Eclipse IDE. Eclipse Classic should suffice for the general case.
Related Articles
Licensing Overview for InstallAnywhere 2011 and Later 23Number of Views Generating InstallAnywhere Log for Install, Uninstall, and Build in InstallAnywhere 2011 And Later 7Number of Views Download InstallAnywhere 2011 and Later Versions 4Number of Views Activate InstallAnywhere 2011 and Later with a Node-Locked License 4Number of Views How to Include Custom Code Using InstallAnywhere 12Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Case id: 00001065
Activity: Status change: 2 hours ago