【Launch Performance Wizard】Source code not available. you may not have the appropriate symbol paths or there was an error loading the symbols.
环境:
Windows 7 Enterprise SP1
Visual Studio 2010 Ultimate SP1
操作及结果:
Analyze=> Launch Performance Wizard
点击对应function name, function code view显示:Source code not available. you may not have the appropriate symbol paths or there was an error loading the symbols.
原因及解决办法:
不正确的symbol设置,应添加 debugger symbols的位置。
- Tools menu=> Options => Debugging=> click Symbols.
- Verify that Symbol file (.pdb) locations lists all the locations for your symbols. Add locations as necessary.
- In Cache symbols from symbol servers to this directory, add the Microsoft Symbol Server location, if necessary: http://msdl.microsoft.com/download/symbols.
- Click OK.
- Re-analyze the file to see whether the fix worked.