Index: plications/editors/josm/plugins/mapillary/.settings/Build JOSM-Mapillary.launch
===================================================================
--- /applications/editors/josm/plugins/mapillary/.settings/Build JOSM-Mapillary.launch	(revision 32380)
+++ 	(revision )
@@ -1,18 +1,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<launchConfiguration type="org.eclipse.buildship.core.launch.runconfiguration">
-  <listAttribute key="arguments"/>
-  <stringAttribute key="bad_container_name" value="/josm-mapillary-plugin/.settingd"/>
-  <stringAttribute key="gradle_distribution" value="GRADLE_DISTRIBUTION(WRAPPER)"/>
-  <listAttribute key="jvm_arguments"/>
-  <stringAttribute key="org.eclipse.debug.ui.ATTR_CONSOLE_ENCODING" value="UTF-8"/>
-  <listAttribute key="org.eclipse.debug.ui.favoriteGroups">
-    <listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
-  </listAttribute>
-  <booleanAttribute key="show_console_view" value="false"/>
-  <booleanAttribute key="show_execution_view" value="true"/>
-  <listAttribute key="tasks">
-    <listEntry value="build"/>
-    <listEntry value="javadoc"/>
-  </listAttribute>
-  <stringAttribute key="working_dir" value="${project_loc}"/>
-</launchConfiguration>
Index: plications/editors/josm/plugins/mapillary/.settings/Launch JOSM with JOSM-Mapillary loaded.launch
===================================================================
--- /applications/editors/josm/plugins/mapillary/.settings/Launch JOSM with JOSM-Mapillary loaded.launch	(revision 32380)
+++ 	(revision )
@@ -1,16 +1,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<launchConfiguration type="org.eclipse.buildship.core.launch.runconfiguration">
-  <listAttribute key="arguments"/>
-  <stringAttribute key="gradle_distribution" value="GRADLE_DISTRIBUTION(WRAPPER)"/>
-  <listAttribute key="jvm_arguments"/>
-  <stringAttribute key="org.eclipse.debug.ui.ATTR_CONSOLE_ENCODING" value="UTF-8"/>
-  <listAttribute key="org.eclipse.debug.ui.favoriteGroups">
-    <listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
-  </listAttribute>
-  <booleanAttribute key="show_console_view" value="true"/>
-  <booleanAttribute key="show_execution_view" value="true"/>
-  <listAttribute key="tasks">
-    <listEntry value="runJosm"/>
-  </listAttribute>
-  <stringAttribute key="working_dir" value="${project_loc}"/>
-</launchConfiguration>
Index: plications/editors/josm/plugins/mapillary/.settings/Test JOSM-Mapillary.launch
===================================================================
--- /applications/editors/josm/plugins/mapillary/.settings/Test JOSM-Mapillary.launch	(revision 32380)
+++ 	(revision )
@@ -1,24 +1,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<launchConfiguration type="org.eclipse.jdt.junit.launchconfig">
-  <listAttribute key="com.mountainminds.eclemma.core.SCOPE_IDS">
-    <listEntry value="=JOSM-Mapillary/src"/>
-  </listAttribute>
-  <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
-    <listEntry value="/JOSM-Mapillary"/>
-  </listAttribute>
-  <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
-    <listEntry value="4"/>
-  </listAttribute>
-  <stringAttribute key="org.eclipse.debug.ui.ATTR_CONSOLE_ENCODING" value="UTF-8"/>
-  <listAttribute key="org.eclipse.debug.ui.favoriteGroups">
-    <listEntry value="com.mountainminds.eclemma.ui.launchGroup.coverage"/>
-    <listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
-  </listAttribute>
-  <stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value="=JOSM-Mapillary"/>
-  <booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
-  <stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
-  <stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
-  <booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
-  <stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value=""/>
-  <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="JOSM-Mapillary"/>
-</launchConfiguration>
Index: /applications/editors/josm/plugins/mapillary/.settings/launchers/Build JOSM-Mapillary.launch
===================================================================
--- /applications/editors/josm/plugins/mapillary/.settings/launchers/Build JOSM-Mapillary.launch	(revision 32381)
+++ /applications/editors/josm/plugins/mapillary/.settings/launchers/Build JOSM-Mapillary.launch	(revision 32381)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<launchConfiguration type="org.eclipse.buildship.core.launch.runconfiguration">
+  <listAttribute key="arguments"/>
+  <stringAttribute key="bad_container_name" value="/josm-mapillary-plugin/.settingd"/>
+  <stringAttribute key="gradle_distribution" value="GRADLE_DISTRIBUTION(WRAPPER)"/>
+  <listAttribute key="jvm_arguments"/>
+  <stringAttribute key="org.eclipse.debug.ui.ATTR_CONSOLE_ENCODING" value="UTF-8"/>
+  <listAttribute key="org.eclipse.debug.ui.favoriteGroups">
+    <listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
+  </listAttribute>
+  <booleanAttribute key="show_console_view" value="false"/>
+  <booleanAttribute key="show_execution_view" value="true"/>
+  <listAttribute key="tasks">
+    <listEntry value="build"/>
+    <listEntry value="javadoc"/>
+  </listAttribute>
+  <stringAttribute key="working_dir" value="${project_loc}"/>
+</launchConfiguration>
Index: /applications/editors/josm/plugins/mapillary/.settings/launchers/Launch JOSM with JOSM-Mapillary loaded.launch
===================================================================
--- /applications/editors/josm/plugins/mapillary/.settings/launchers/Launch JOSM with JOSM-Mapillary loaded.launch	(revision 32381)
+++ /applications/editors/josm/plugins/mapillary/.settings/launchers/Launch JOSM with JOSM-Mapillary loaded.launch	(revision 32381)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<launchConfiguration type="org.eclipse.buildship.core.launch.runconfiguration">
+  <listAttribute key="arguments"/>
+  <stringAttribute key="gradle_distribution" value="GRADLE_DISTRIBUTION(WRAPPER)"/>
+  <listAttribute key="jvm_arguments"/>
+  <stringAttribute key="org.eclipse.debug.ui.ATTR_CONSOLE_ENCODING" value="UTF-8"/>
+  <listAttribute key="org.eclipse.debug.ui.favoriteGroups">
+    <listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
+  </listAttribute>
+  <booleanAttribute key="show_console_view" value="true"/>
+  <booleanAttribute key="show_execution_view" value="true"/>
+  <listAttribute key="tasks">
+    <listEntry value="runJosm"/>
+  </listAttribute>
+  <stringAttribute key="working_dir" value="${project_loc}"/>
+</launchConfiguration>
Index: /applications/editors/josm/plugins/mapillary/.settings/launchers/Remote debug JOSM-Mapillary.launch
===================================================================
--- /applications/editors/josm/plugins/mapillary/.settings/launchers/Remote debug JOSM-Mapillary.launch	(revision 32381)
+++ /applications/editors/josm/plugins/mapillary/.settings/launchers/Remote debug JOSM-Mapillary.launch	(revision 32381)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<launchConfiguration type="org.eclipse.jdt.launching.remoteJavaApplication">
+  <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+    <listEntry value="/JOSM-Mapillary"/>
+  </listAttribute>
+  <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+    <listEntry value="4"/>
+  </listAttribute>
+  <stringAttribute key="org.eclipse.debug.core.source_locator_id" value="org.eclipse.jdt.launching.sourceLocator.JavaSourceLookupDirector"/>
+  <stringAttribute key="org.eclipse.debug.core.source_locator_memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#10;&lt;sourceLookupDirector&gt;&#10;&lt;sourceContainers duplicates=&quot;false&quot;&gt;&#10;&lt;container memento=&quot;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; standalone=&amp;quot;no&amp;quot;?&amp;gt;&amp;#10;&amp;lt;javaProject name=&amp;quot;JOSM&amp;quot;/&amp;gt;&amp;#10;&quot; typeId=&quot;org.eclipse.jdt.launching.sourceContainer.javaProject&quot;/&gt;&#10;&lt;container memento=&quot;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; standalone=&amp;quot;no&amp;quot;?&amp;gt;&amp;#10;&amp;lt;classpathContainer path=&amp;quot;GROOVY_SUPPORT&amp;quot;/&amp;gt;&amp;#10;&quot; typeId=&quot;org.eclipse.jdt.launching.sourceContainer.classpathContainer&quot;/&gt;&#10;&lt;container memento=&quot;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; standalone=&amp;quot;no&amp;quot;?&amp;gt;&amp;#10;&amp;lt;classpathContainer path=&amp;quot;GROOVY_DSL_SUPPORT&amp;quot;/&amp;gt;&amp;#10;&quot; typeId=&quot;org.eclipse.jdt.launching.sourceContainer.classpathContainer&quot;/&gt;&#10;&lt;container memento=&quot;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; standalone=&amp;quot;no&amp;quot;?&amp;gt;&amp;#10;&amp;lt;javaProject name=&amp;quot;JOSM-Mapillary&amp;quot;/&amp;gt;&amp;#10;&quot; typeId=&quot;org.eclipse.jdt.launching.sourceContainer.javaProject&quot;/&gt;&#10;&lt;container memento=&quot;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; standalone=&amp;quot;no&amp;quot;?&amp;gt;&amp;#10;&amp;lt;default/&amp;gt;&amp;#10;&quot; typeId=&quot;org.eclipse.debug.core.containerType.default&quot;/&gt;&#10;&lt;/sourceContainers&gt;&#10;&lt;/sourceLookupDirector&gt;&#10;"/>
+  <stringAttribute key="org.eclipse.debug.ui.ATTR_CONSOLE_ENCODING" value="UTF-8"/>
+  <booleanAttribute key="org.eclipse.debug.ui.ATTR_LAUNCH_IN_BACKGROUND" value="false"/>
+  <listAttribute key="org.eclipse.debug.ui.favoriteGroups">
+    <listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
+  </listAttribute>
+  <booleanAttribute key="org.eclipse.jdt.launching.ALLOW_TERMINATE" value="false"/>
+  <mapAttribute key="org.eclipse.jdt.launching.CONNECT_MAP">
+    <mapEntry key="hostname" value="localhost"/>
+    <mapEntry key="port" value="5006"/>
+  </mapAttribute>
+  <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="JOSM-Mapillary"/>
+  <stringAttribute key="org.eclipse.jdt.launching.VM_CONNECTOR_ID" value="org.eclipse.jdt.launching.socketAttachConnector"/>
+</launchConfiguration>
Index: /applications/editors/josm/plugins/mapillary/.settings/launchers/Test JOSM-Mapillary.launch
===================================================================
--- /applications/editors/josm/plugins/mapillary/.settings/launchers/Test JOSM-Mapillary.launch	(revision 32381)
+++ /applications/editors/josm/plugins/mapillary/.settings/launchers/Test JOSM-Mapillary.launch	(revision 32381)
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<launchConfiguration type="org.eclipse.jdt.junit.launchconfig">
+  <listAttribute key="com.mountainminds.eclemma.core.SCOPE_IDS">
+    <listEntry value="=JOSM-Mapillary/src"/>
+  </listAttribute>
+  <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+    <listEntry value="/JOSM-Mapillary"/>
+  </listAttribute>
+  <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+    <listEntry value="4"/>
+  </listAttribute>
+  <stringAttribute key="org.eclipse.debug.ui.ATTR_CONSOLE_ENCODING" value="UTF-8"/>
+  <listAttribute key="org.eclipse.debug.ui.favoriteGroups">
+    <listEntry value="com.mountainminds.eclemma.ui.launchGroup.coverage"/>
+    <listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
+  </listAttribute>
+  <stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value="=JOSM-Mapillary"/>
+  <booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
+  <stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
+  <stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
+  <booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
+  <stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value=""/>
+  <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="JOSM-Mapillary"/>
+</launchConfiguration>
Index: /applications/editors/josm/plugins/mapillary/build.gradle
===================================================================
--- /applications/editors/josm/plugins/mapillary/build.gradle	(revision 32380)
+++ /applications/editors/josm/plugins/mapillary/build.gradle	(revision 32381)
@@ -173,2 +173,12 @@
 }
 runJosm.dependsOn installPlugin
+
+
+task debugJosm(type: JavaExec) {
+    classpath = sourceSets.main.runtimeClasspath
+    main = 'JOSM'
+    args '--offline=josm_website'
+    jvmArgs "-Xdebug", "-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5006", "-Djosm.home=$buildDir/.josm"
+
+}
+debugJosm.dependsOn installPlugin
