远程调试不打破错误 [英] Remote Debugging is not breaking on errors

查看:112
本文介绍了远程调试不打破错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是相当新的远程调试在Visual Studio中,并通过新的我的意思是我从来没有这么做过。以下是我已经尝试在我们的网络中的一台服务器进行远程调试应用程序的步骤:

I am fairly new to remote debugging in Visual Studio, and by new I mean I have never done it before. Here are the steps I have taken to try to remotely debug an application on one of the servers in our network:


  • 在VS2008打开网站\\server\website

  • 服务器与无身份验证上启动msvsmon服务和允许任何用户调试

  • 从VS2008,连接到w3wp进程服务器使用远程传输

调试开始,一切似乎确定,但是当我去的网页有错误,它不会破坏,让我调试。我缺少的东西吗?

debugging starts and everything seems ok, but when i go to the page with the error, it doesn't break and let me debug. Am I missing something?

推荐答案

您需要确保您有正确加载PDB文件。

You need to ensure you have the PDB files loaded correctly.

的Visual Studio打算在用于PDB文件远程位置(包含调试信息)看,如果没有找到他们它不具有必要的调试符号打破。

Visual Studio is going to look in that remote location for the PDB files (which contain the debugger information) and if it doesn't find them it doesn't have the necessary debug symbols to break on.

添加路径名符号文件(.PDB或.DBG)位置列表


  1. 在工具菜单中选择选项。

  2. 在选项对话框中,单击调试节点以打开它

  3. 在调试中,选择符号类别。

  4. 在页面的符号,还有一个盒子,上面写着符号文件(.PDB)的位置。上面的方块是四个图标。单击文件夹图标和可编辑的文本出现在符号文件(.PDB)的位置框。

  5. 编辑文本添加一个新的路径。语句完成可以帮助你得到的格式正确。

  6. 确保只搜索上述地点时,符号手动加载没有选择,除非你想,当你调试手动加载符号。

  7. 如果您使用的是远程符号服务器上的符号,你可以通过指定符号可以被复制到本地目录中提高性能。要做到这一点,请使用符号服务器缓存的符号到这个目录框。请注意,如果您在远程计算机上调试程序的缓存目录指的是远程计算机上的目录。

  8. 单击确定。

  1. On the Tools menu, choose Options.
  2. In the Options dialog box, click the Debugging node to open it.
  3. Under Debugging, select the Symbols category.
  4. On the Symbols page, there is a box that says Symbol file (.pdb) locations. Above the box are four icons. Click the folder icon and editable text appears in the Symbol file (.pdb) locations box.
  5. Edit the text to add a new path. Statement completion helps you get the format right.
  6. Make sure Search the above locations only when symbols are loaded manually is not selected, unless you want to load symbols manually when you debug.
  7. If you are using symbols on a remote symbol server, you can improve performance by specifying a local directory that symbols can be copied to. To do this, use the Cache symbols from symbol server to this directory box. Note that if you are debugging a program on a remote computer the cache directory refers to a directory on the remote computer.
  8. Click OK.

http://msdn.microsoft.com/en-us /library/x54fht41.aspx

这篇关于远程调试不打破错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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