简体   繁体   English

如何调试进入需要XML请求的ASPX页面?

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

Is there a way to test sending an XML file as a request to my ASP.Net web page within Visual Studio 2008? 有没有一种方法可以测试将XML文件作为请求发送到Visual Studio 2008中我的ASP.Net网页?

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 file too and receive an XML response from. 我遇到的情况是我也有一个ASPX页面,我也发送XML文件并从中接收XML响应。 In order to debug this, I need to step into the page while providing an XML request. 为了进行调试,我需要在提供XML请求的同时进入页面。 I This is what I need to figure out how to do? 我这是我需要弄清楚怎么办?

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 . 从那时起,查看网络运行情况的最佳方法是使用调试代理(如fiddler)

Alternatively, there is firebug and its Net tab which will show your requests and responses. 另外,还有萤火虫及其“ Net选项卡,它将显示您的请求和响应。

This is easy. 这很容易。 Just create an HTML page that contains a simple submit form, and it's submit action will post-back the XML. 只需创建一个包含简单提交表单的HTML页面,它的Submit操作将回发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. 在Visual Studio中,您所要做的就是附加到process->并选择包含HTML表单的浏览器窗口,然后就可以了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM