Changes between Version 80 and Version 81 of DevelopersGuide/DevelopingPlugins


Ignore:
Timestamp:
2017-03-28T16:44:03+02:00 (9 years ago)
Author:
bagage
Comment:

add debugging plugin section (eclipse)

Legend:

Unmodified
Added
Removed
Modified
  • DevelopersGuide/DevelopingPlugins

    v80 v81  
    4949</table>
    5050}}}
     51
     52== Debugging (using Eclipse) ==
     53
     54If you need to debug a plugin, it can easily be done using Eclipse:
     55
     561. Import your plugin as an existing project in Eclipse
     572. Open your project properties to add required libraries (Properties -> Java Build Path -> Libraries -> Add External JARs). You must at least add `josm/core/dist/josm-custom.jar`, but you may also add your plugin dependencies if any (for instance `josm/dist/utilsplugin2.jar`).
     583. Create a `Run Configuration` (Properties -> Run/Debug Settings -> New -> Java Application). Main class must be set to `org.openstreetmap.josm.gui.MainApplication`.
     594. You can know tweak your plugin and/or set breakpoints… etc.
    5160
    5261== Automated testing ==