If you already have checked out all IQM modules according to [Getting Started], you are good to go. Otherwise, you will have to check out all iqm-modules and build the corresponding Eclipse projects.
Add your plugin-project as project dependency to the iqm-app module in Eclipse:

Now run the application (iqm-app module) in debug mode.
Note: This may put the plugin's menu item directly to the Plugins/Image or Plugins/Plot menu without any hierarchy. If you develop in the standard checked out folder structure, you may get a menu structure like Plugins/Image/<your-dev-path>/<your-plugin-menu-item-name>. But that's OK, since you do not run a packaged version yet.

A more tedious way to debug is remote-debugging of an already deployed plugin. You may consider this option, if
java -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=19000 -jar /path/to/IQM/iqm[-version].jarThis will wait for Eclipse to connect to port 19000 until progressing with the startup.
Set some breakpoints in order to suspend the JVM at the specified location.
Now, select your plugin project in Eclipse, go to Run --> Debug Configurations... and configure an Eclipse remote debug session, then hit Debug.

Execute the plugin. The debugger will now suspend the JVM at the specified location and lets you examine the variables at runtime.

Anonymous