运行 Web 应用程序时的远程调试
我们正在尝试向正在运行的 Web 应用程序添加新页面。这样就添加了新的 dll 和 aspx 文件。我在代码文件中设置了断点,并构建了应用程序,将 dll 传输到远程计算机 bin 文件,并将 aspx 页面传输到 Web 应用程序中的文件夹。请注意,此文件夹与其内置的文件夹层次结构不同。我不确定这是否是问题所在。基本上,我们正在向 Web 应用程序添加新功能。
我已完成以下操作
我已将正确的远程调试监视器复制到服务器并使其运行。
我能够附加到本例中为 w3wp.exe 的进程(我已确定它是我的应用程序的正确进程。
我将 *.dll 与 *.pdb 文件一起部署到 bin 文件夹中。
我已将 *.aspx 文件部署到我们想要的位置。
在 Visual Studio 中打开并设置断点后,我们附加到进程并进行调试,并且断点
似乎丢失了。搜索了网络,但只找到了完整的发布\部署方案
。
We are trying to add a new page to a running web application. such that a new dll and aspx file are being added. I've setup break points in the code file and Built the application transfering the dll to the remote machine bin file and the aspx page to a folder within the web application. Note this folder is not in the same folder hierarchy as it built in. I'm not sure if thats the problem. Basically we are appending new functionality to a web application.
I've completed the following
I've copied the correct Remote Debug Monitor to the server and have it running.
I'm able to attach to the process which in this case is w3wp.exe (I've Identified that it is the correct process for my application.
I deployed the *.dll to the the bin folder with the *.pdb file along with it.
I've deployed the *.aspx file to the location we want.
With the file open in visual studio with breakpoints setup, we attach to the process and debug. I get 'No symbols loaded' and the breakpoint go empty.
I'm missing something it seems. I've searched the net but have only found complete publish\ deployment scenario.
Any thoughts
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
工具->选项->符号->添加已部署的 Web 应用程序 dll 和 pdb 的路径。
您可能还需要在常规调试下取消选中“仅启用我的代码”。
这是一个过去对我有用的更详细的答案: 远程调试是不会因错误而中断
Tools -> Options -> Symbols -> Add the path to your deployed web application dlls and pdbs.
You might also need to uncheck "Enable Just My Code" under general debugging.
Here's a more detailed answer that got it working for me in the past: Remote Debugging is not breaking on errors