Visual Studio远程调试问题
我在 Visual Studio 2010 中打开本地项目 asp.net。并将该项目复制到远程托管中的 IIS 文件夹。因为在托管目录中我没有 VS,所以我将远程调试器应用程序复制到那里。我从 Visual Studio 连接到托管上的 IIS 进程,但任何断点都不会触发。
为什么 ?
I have local my projects asp.net open in visual studio 2010. And also copy this project to IIS folder in remote hosting. Cause in hosting directory I don't have VS so I copy there remote debugger application. I connect from my Visual Studio to IIS process on hosting, but any of breakpoints not fire.
Why ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当我使用“附加到进程”对话框中的传输设置为“远程(仅本机,无需身份验证)”进行连接时,我遇到了同样的问题。我能够连接到 IIS 进程(Win2K3 上的 IIS6 为 w3wp.exe),但当我在 Web 应用程序中导航时没有遇到断点。
为了使其正常工作,我将传输更改为“默认”。然后,我在成功连接到 Visual Studio 远程调试监视器时遇到了许多问题。但是,一旦我解决了所有问题并能够从远程计算机获取进程列表,我就可以连接到 W3WP.exe 了,瞧,我的断点开始工作,并且我能够正常调试。
您没有提供有关本地和远程配置的详细信息,因此这只是猜测它是否有帮助。
I had the same issue when I connected using the Transport in the "Attach to Process" dialog set to "Remote (native only with no authentication)". I was able to connect to the IIS process (w3wp.exe for IIS6 on Win2K3), but no breakpoints were hit when I navigated within the web app.
To get it working, I changed the Transport to "Default". Then I ran into numerous issues with successfully connecting to the Visual Studio Remote Debugging Monitor. But once I resolved them all and was able to get the list of processes from the remote machine, I could connect to W3WP.exe and voila, my breakpoints started working and I was able to debug normally.
You don't provide much detail on your local and remote configuration, so this just a guess whether it might help.