简体   繁体   English

远程调试不会破坏错误

[英]Remote Debugging is not breaking on errors

I am fairly new to remote debugging in Visual Studio, and by new I mean I have never done it before. 我对Visual Studio中的远程调试相当新,而且我的意思是我之前从未做过。 Here are the steps I have taken to try to remotely debug an application on one of the servers in our network: 以下是我尝试远程调试网络中某个服务器上的应用程序的步骤:

  • open a website in VS2008 "\\\\server\\website" 在VS2008“\\\\ server \\ website”中打开一个网站
  • Start the msvsmon service on "server" with "no authentication" and "allow any user to debug" 使用“无身份验证”和“允许任何用户调试”在“服务器”上启动msvsmon服务
  • From VS2008, Attach to the w3wp process on "server" using remote transport 从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? 我错过了什么吗?

You need to ensure you have the PDB files loaded correctly. 您需要确保正确加载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. Visual Studio将在PDB文件的远程位置查找(包含调试器信息),如果找不到它们,则它没有必要的调试符号来打破。

To add a pathname to the symbol file (.pdb or .dbg) locations list 将路径名添加到符号文件(.pdb或.dbg)位置列表中

  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. 在“符号”页面上,有一个框表示符号文件(.pdb)位置。 Above the box are four icons. 方框上方有四个图标。 Click the folder icon and editable text appears in the Symbol file (.pdb) locations box. 单击文件夹图标,可编辑文本显示在符号文件(.pdb)位置框中。
  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 http://msdn.microsoft.com/en-us/library/x54fht41.aspx

这是一份清单

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM