Eclipse includes some command-line tools for platform developers, which can be launched by providing the -application option to the Equinox launcher JAR (formerly startup.jar). A need may arise to debug one of those helper applications. Proceed as follows:
- Import the plug-in
org.eclipse.equinox.launcherinto workspace (with source code). - Import the plug-in containing the helper application into workspace (with source code). For example:
org.eclipse.update.corecontains the siteOptimizer application. - Create a debug configuration for the Java class
org.eclipse.equinox.launcher.Main. Specify-Dosgi.install.area=/path/to/eclipse/installation/diras a VM argument. Specify the remaining command-line arguments (e.g.-application ...). - Set a breakpoint at the entry point to the helper application (likely a method called
runorstart). - If the debugger asks for a source code location, point it to the workspace project.
No comments:
Post a Comment