While remote debugging how are the pdb located (VS 2008)

泄露秘密 提交于 2019-12-24 01:54:30

问题


When the debugger is attached to a process on remote server -

What locations are searched for the pdb? In what order? (e.g. is it searched on the remote server (debuggee) or on the local client (debugger))

When I use the debugger to manually load pdb file from specific location - is the debugger looking for the file locally or is it the remote debugger monitor looking for the file on the?

Is there any article that describes that process?


回答1:


The machine the debugger is running on loads the symbols (not the remote).

This article explains the basics of setting up where VS looks for symbols:

  • http://msdn.microsoft.com/en-us/library/x54fht41(VS.90).aspx?ppud=4

This one explains how to set up a symbol server in the search path (which is particularly useful for Windows symbols):

  • http://msdn.microsoft.com/en-us/library/b8ttk8zy(VS.90).aspx

There are a lot of pitfalls for remote debugging (mainly having to do with connectivity and permissions/authentication). See the following page for a list of links that you'll want to read up for details:

  • http://msdn.microsoft.com/en-us/library/y7f5zaaa(VS.90).aspx



回答2:


Is there any article that describes that process?

As you know, when the debugger starts a session, it begins to search for the location where the appropriate PDB are located. The following article describes the mechanism and the search order of the process.



来源:https://stackoverflow.com/questions/2735033/while-remote-debugging-how-are-the-pdb-located-vs-2008

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!