I’m developing a cross platform mobile app in the MonoDevelop IDE (3.0.6).
In the network layer of my app, I’m sending requests to a remote server using the System.Net.WebClient class.
I am able to send requests and handle the response successfully (e.g. using
WebClient.UploadStringAsync(..) method and WebClient.UploadStringCompleted event handler), but I don’t know how to see information about the requests being sent (Uri, Headers, Body, Status Code) in the Debugger’s Console, this would be useful for debugging.
Does anyone know how can I achieve that?
WebClient class provides a bunch of properties like
Headers,BaseAddress,ResponseHeadersand others which can help you to analyze your HTTP requests. See more hereSince you want this info in Debugger console, use this approach. I would rather suggest use a network monitoring tool like Fiddler for this.