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

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

问题描述

我在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)的路径名添加到位置列表

To add a pathname to the symbol file (.pdb or .dbg) locations list


  1. 在工具菜单上,选择选项。

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

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

  4. 在符号页面上,有一个框可以显示Symbol文件(.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天全站免登陆