开发者

Sharing pdb files amongst developers so everyone can step into code

开发者 https://www.devze.com 2023-03-06 11:47 出处:网络
If I build a project (lets call it Project X) on my computer and copy its dll and pdb files into another solution (Project Y), whilst I am debugging Project Y I can easily step back into the original

If I build a project (lets call it Project X) on my computer and copy its dll and pdb files into another solution (Project Y), whilst I am debugging Project Y I can easily step back into the original code files of Project X. I guess the pdb file contains the full path on开发者_开发百科 my computer.

Other developers also work on both Project X and Project Y and it would be nice if they could also step into the actual files on their computer whilst debugging. The problem is that their directory structure may be different to my directory structure, so the path references embedded in the pdb file won't work.

So what is the easiest way to allow all developers to step into another solution's files on their machine whilst debugging, assuming they have copies of a dll and pdb file built on someone else's computer?


StackHash.com has some relevant blog posts about setting up symbol and source servers. That might be overkill for what you are looking for. But for public releases, where multiple developers may need to look at customer or WER generated minidumps, setting up a symbol server looks to be ideal. Also, see their Getting Started with WinQual series which covers some of the same topics.

One of the issues you'll run into is whether your co-workers even have the same version of the source files that were used in your build. The source indexing described in the previous links works with your source control to automatically get the appropriate versions when the pdb is loaded.

0

精彩评论

暂无评论...
验证码 换一张
取 消