开发者

How do I debug step into an ASPX page that requires an XML request?

开发者 https://www.devze.com 2023-01-29 22:52 出处:网络
Is there a way to test sending an XML file as a request to my ASP.Net web page within Visual Studio 2008?

Is there a way to test sending an XML file as a request to my ASP.Net web page within Visual Studio 2008?

Ok, no one has answered this in a helpful way. I have a situation where I have an ASPX page that I send an XML开发者_JAVA百科 file too and receive an XML response from. In order to debug this, I need to step into the page while providing an XML request. I This is what I need to figure out how to do?


This is easy. Just create an HTML page that contains a simple submit form, and it's submit action will post-back the XML. In visual studio, all you have to do is attach to process-> and choose the browser window containing your HTML form, and there you go.


You can simply put a breakpoint at the code behind just before sending the file to see that everything at that point is as expected.

From then on, the best way to see what goes over the wire is to use a debugging proxy like fiddler.

Alternatively, there is firebug and its Net tab which will show your requests and responses.

0

精彩评论

暂无评论...
验证码 换一张
取 消