Select to view content in your preferred language

Debug ArcGIS Runtime HTTP Requests in WPF

1400
6
11-10-2011 10:11 AM
BKuiper
Frequent Contributor
Hi,

i'm trying to setup Fiddler to show me all the requests made to the ArcGIS Runtime, but i'm struggling getting this working.

WebRequest.RegisterPrefix and WebRequest.DefaultProxy are not working.

How do the Esri people debug their ArcGIS Runtime ?

I want to see the traffic to get a better understanding what is going on and see what's is going wrong with my GP task.
0 Kudos
6 Replies
RichardWatson
Deactivated User
I don't know much about the ArcGIS Runtime so ignore this post if it isn't helpful.  When I looked into related issues earlier I remember that ESRI is using Derby and I thought that it would be very helpful if someone wrote a primer on how all of this works.

What I know is that for normal debugging if you route messages through ipv4.fiddler instead of say localhost then they route through Fiddler. 

I am just wondering if there is some similar trick for the runtime.
0 Kudos
BKuiper
Frequent Contributor
i discovered how you can change the port number of the host, but i don't think it's possible to change the hostname. Which makes a bit of sense, otherwise you could run ArcGIS Runtime as a server to the outside (Internet). Still, i'm curious how Esri developers debug ArcGIS Runtime. I noticed that the status updates or feedback through the C# code is not always complete and i'm missing important information. Listening/watching to the actual HTTP traffic would be really helpful to get things working more quickly.

to change port edit arcgisruntime.json

{
"serverExe": "bin/ArcGISRuntime.exe",
"args": [ "port=1337"]
}
0 Kudos
MichaelBranscomb
Esri Frequent Contributor
Hi,

You'll be pleased to hear that since Beta 1 we have several changes which help significantly when trying to debug ArcGIS Runtime applications. There are two aspects to this. the first is http traffic monitoring (which is what you're trying to achieve). The second aspect is logging support in the ArcGIS Runtime - written out as readable text files. In Beta 2, both these options will be configurable via the json file you have found. In the future we're looking at making these settings configurable via a GUI and also providing better GUI access to the log files for debugging purposes. , both of which are preferable to having people make their own changes to the JSON file.

Cheers

Mike
0 Kudos
BKuiper
Frequent Contributor
Great to hear, looking forward to Beta 2!
0 Kudos
BKuiper
Frequent Contributor
0 Kudos
MichaelBranscomb
Esri Frequent Contributor
Hi,

That post details the Beta 2 workaround for administering your developer install. However, we don't encourage you to edit the json file directly. Alternatively, you should use the Deployment Tool to create a "debug deployment" - which means use the debug options dialog in the Deployment Tool to enable these settings then use the LocalServer.InstallDirectory property to pickup the debug local server. We are planning to provide a utility to administer the developer settings in a future release.

Cheers

Mike
0 Kudos