为什么Debugging在一个项目中工作而在另一个项目中不起作用 [英] Why does Debugging works in one project and doesn't work in another project

查看:88
本文介绍了为什么Debugging在一个项目中工作而在另一个项目中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从未打开过一个项目,今天我打开它并尝试调试,我检查了两个web.config文件。两者在编译时都有debug = true。但是项目A没有达到调试点,甚至没有显示调试符号有暂停/播放符号。它只显示绿色播放符号。

项目B有调试器工作并显示正确。

有谁可以告诉我为什么?

I have never opened a project and today I opened it and was trying to debug, I checked web.config file for both . Both has debug=true in compilation. But Project A doesn't hit debug point and doesn't even show the Debug symbol has pause/play symbol. It just shows green play symbol.
Project B has debugger working and shows all correct.
Can anyone tell me why?

推荐答案

您可能必须将调试器附加到IIS进程才能调试项目。对于Windows应用程序,它更直接,因为Visual Studio启动了调试过程。对于网站,代码在IIS进程下执行,具有应用程序池的凭据。



在Visual Studio中,单击调试菜单,然后单击'附加到流程...';找到你的IIS进程并选择它(对不起,我不记得IIS进程名称,因为大约有三年我不必这样做)。
You may have to attach your debugger to your IIS process to be able to debug your project. For a Windows Application, it is more straightforward, as the process to debug is launched by Visual Studio. For a web site, the code is executed under a IIS process, with the application pool's credentials.

In Visual Studio, click on the 'Debug' menu, then on 'Attach to process...' ; find your IIS process and select it (sorry, I can't recall IIS process name as there are about three years that I did not have to go this way).


这篇关于为什么Debugging在一个项目中工作而在另一个项目中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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