如何查看在不同计算机上创建的Visual Studio VSP文件?
我已在我的开发计算机上运行 Visual Studio Profiler 并创建了一个 VSP 文件。在我的开发机器上,“函数详细信息”视图让我可以看到运行时间较长的代码行。我的问题是,如何将此文件发送给其他人而不丢失功能?
当我将 VSP 文件复制到另一台计算机并尝试在 Visual Studio 中打开它时,我获得了一些功能,但在“功能详细信息”视图中看不到任何代码,而是看到“源代码不可用。您可能没有适当的符号路径,或者加载符号时出错。”
我也尝试过复制源文件和 PDB 文件,但出现相同的结果。在输出窗口中,Visual Studio 似乎正在尝试在我的开发计算机上存在的路径中查找 PDB 文件,但由于它在另一台计算机上运行,因此无法找到它们。
I've run the Visual Studio Profiler on my development machine and created a VSP file. On my development machine, the "Function Details" view lets me see the lines of code that are taking long to run. My question is, how do I send this file to someone else without losing functionality?
When I copy just the VSP file to a different computer and try to open it up in Visual Studio, I get some of the functionality, but I can't see any of the code in the "Function Details" view, and instead see "Source code not available. You may not have the appropriate symbol paths or there was an error loading the symbols."
I've tried copying the source and PDB files as well but the same results occur. In the output window, it seems that Visual Studio is trying to look for the PDB files in a path that existed on my development machine, but since it's running on a different computer it can't find them.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您有两个选择(有关详细信息,请参阅 MSDN):
或者:
vsperfreport.exe
在开发计算机上打包符号。这应该可以解决丢失 PDB 文件的任何问题,但为了查看源代码视图,您需要将源文件放在其他计算机上与开发计算机上相同的路径中。
You have two options (for more info see MSDN):
OR:
vsperfreport.exe
to pack symbols on your development machine first.This should solve any problems with missing PDB files, but in order to see the source code view you will need to have the source files in the same path on your other machine as you do on your development machine.