调试ASP.Net应用程序 [英] Debugging ASP.Net application

查看:95
本文介绍了调试ASP.Net应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个已部署的ASP.Net应用程序,我有此ASP.Net应用程序中使用的所有程序集的源代码和PDB文件. ASP.Net应用程序可以在IIS上运行.

我的问题是,如何在IIS上进行调试?例如.我发送了一些请求,可以在cs文件中逐行调试以查看处理细节吗?

先谢谢了,
George

Hello everyone,

I have a deployed ASP.Net application, I have source code and PDB files for all assemblies used in this ASP.Net application. And the ASP.Net application runs on IIS.

My question is, how to debug on IIS? E.g. I send some request and could debug line by line in cs file to see the processing details?

thanks in advance,
George

推荐答案

远程调试

Remote Debugging


工具->附加进程.在VS上打开网站,附加当前正在运行您的应用程序的浏览器应用程序.然后调试.

Tools - > Attach Process.
Open Websites on VS , Attach the Browser Application which is currently runs your application. Then Debug.


George_George写道:
George_George wrote:

我的问题是,如何在IIS上调试?例如.我发送了一些请求,可以在cs文件中逐行调试以查看处理细节吗?

My question is, how to debug on IIS? E.g. I send some request and could debug line by line in cs file to see the processing details?



您正试图从连接到服务器的计算机上逐步进入代码吗? AFAIK,这是不可能的.简单的方法是将远程桌面远程连接到该服务器,然后在其中调试VS的代码.



You are trying to step into code from your machine connecting to server right? AFAIK, this is not possible. Easy way is to remote desktop to that server, and debug the code there if you have VS installed there.


这篇关于调试ASP.Net应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆