Debug the ArcGIS WPS Client


Introduction

This tutorial show how to debug the WPS Client for ArcGIS.

Content

Set up ArcGIS

Run C:\Program Files (x86)\ArcGIS\Desktop10.7\bin\JavaConfigTool.exe as administrator. The path may vary on your system.

Check "Enable Debugging of Java extensions from an IDE (e.g., Eclipse)".

JavaConfigTool.png

Click "OK" to close the dialog.

Set up the IDE

We are using Eclipse for this tutorial. Download it from here: https://www.eclipse.org/downloads/packages/. We use the Eclipse IDE for Enterprise Java Developers for this tutorial.

Download/clone the WPS Client for ArcGIS from GitHub: https://github.com/52North/wpsclient4arcgis

Start eclipse. Choose or create a workspace.

Now import the WPS Client for ArcGIS Maven project.

Start either from here:

import-1.png

Or use the menu

import-1.1.png

This will lead you to the import dialog. Choose "Maven" -> "Existing Maven Projects" and click "Next"

import-2.png

Now browse to the folder containing the WPS Client for ArcGIS, you should see the following:

import-3.png

Click "Finish" to start the import process. Click "Finish" again when the dialog below shows up and click "OK" in the confirmation dialog.

import-4.png

Now the project will be imported into the workspace. You should see something like the following:

import-5.png

Debug the client

Start ArcMap.

in Eclipse, set a breakpoint in the class ArcMapWPSClientDialog.java in the module wps-arcmap-client-extension, e.g. in line 449:

debug-1.png

Now open the "Run" menu and click on "Debug Configurations":

debug-2.png

Double click on "Remote Java application". There should be default values used for "Name" and "Project". Otherwise select a name and browse to the wps-arcmap-client-extension project.

Important: Change the Port to 8013! (This needs to be the same port ad in the JavaConfigTool).

Click "Debug" to start debugging. You can ignore the following warning for now (i.e. click "Proceed"):

warning-1.png

In ArcMap, click on "Add WPS Server" and connect to a WPS.

In Eclipse, you should now be prompted to switch to the debug perspective, as the breakpoint was hit.

question-1.png

Click "Switch". You now should see something like the following:

debug-4.png

Now you are able to debug the WPS Client for ArcGIS.

Topic attachments
I Attachment Action Size Date Who Comment
JavaConfigTool.pngpng JavaConfigTool.png manage 69 K 04 Mar 2020 - 14:44 BenjaminPross  
debug-1.pngpng debug-1.png manage 661 K 04 Mar 2020 - 08:10 BenjaminPross  
debug-2.pngpng debug-2.png manage 554 K 04 Mar 2020 - 08:15 BenjaminPross  
debug-4.pngpng debug-4.png manage 751 K 04 Mar 2020 - 09:08 BenjaminPross  
import-1.1.pngpng import-1.1.png manage 94 K 04 Mar 2020 - 07:50 BenjaminPross  
import-1.pngpng import-1.png manage 102 K 04 Mar 2020 - 07:52 BenjaminPross  
import-2.pngpng import-2.png manage 81 K 04 Mar 2020 - 07:57 BenjaminPross  
import-3.pngpng import-3.png manage 149 K 04 Mar 2020 - 07:58 BenjaminPross  
import-4.pngpng import-4.png manage 84 K 04 Mar 2020 - 07:59 BenjaminPross  
import-5.pngpng import-5.png manage 218 K 04 Mar 2020 - 08:03 BenjaminPross  
question-1.pngpng question-1.png manage 69 K 04 Mar 2020 - 09:07 BenjaminPross  
warning-1.pngpng warning-1.png manage 55 K 04 Mar 2020 - 08:29 BenjaminPross  
Topic revision: r2 - 04 Mar 2020, BenjaminPross
Legal Notice | Privacy Statement


This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Wiki? Send feedback