如何在IIS服务器上部署的应用程序中添加断点。 [英] how to add a breakpoint in the application deployed on IIS server.

查看:85
本文介绍了如何在IIS服务器上部署的应用程序中添加断点。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



通常当我们要调试任何应用程序时......我们在Visual Studio中运行它并使用断点。工作正常...



但我有一个应用程序部署在IIS服务器7中的情况,我想调试它而无需在visual studio中打开该应用程序。 br $> b $ b

注意....应用程序部署在IIS服务器的物理路径上。



:)



::应用程序正在使用Web服务,并且通过物理路径在IIS上部署Web服务。因此,我们必须在Application中添加Web服务引用以正确运行它。

如果我们想要调试Web服务,那么我们必须在Visual Studio中运行它们并添加它的引用在应用程序中本地构建Web服务,完成后,在应用程序中重新添加引用。



但我希望该引用与Deployed服务保持一致,我只需打开以下服务: VS中的物理路径,通过断点和应用程序使用来自IIS的调试。



我知道有点愚蠢或奇怪的情况,但这是什么以及如何我希望。






问候,

hi all,

Normally when we want to debug any application.. we run it in Visual Studio and use the breakpoints. that works fine...

But I have a scenario that application is deployed in IIS server 7 and I wanted to debug it without opening that application in visual studio.

NOTE.... application is deployed on physical path on IIS server.

:)

EDITING::: Application is using webservices, and web services are deployed over IIS through Physical Path. So we have to add the web services reference in Application to run it properly.
while if we want to debug the web services, so than we have to run them in Visual Studio and add the reference of that locally build web service in application and after finished, re add the reference in application.

BUT I wanted that reference remains same of Deployed service, I just open the services from physical path in VS, debug that through break points and application uses that from IIS.

I know a bit stupid or strange scenario,, but this is what and how I want.



Regards,

推荐答案

Build您的代码在Visual Studio中的DEBUG模式下。在代码中设置断点。按F5开始调试。
Build your code in DEBUG mode in Visual Studio. Set a breakpoint in your code. Press F5 to start debugging.


这篇关于如何在IIS服务器上部署的应用程序中添加断点。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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