已知VS2015源服务器设置方法,如何在WinDBG Preview中配置?
Got it! Let me walk you through how to enable source server support in WinDBG Preview—since it's a bit different from Visual Studio 2015's Options menu.
1. Open the Settings Panel
- Launch WinDBG Preview, then click the gear icon (Settings) in the top-right corner of the window.
- Or use the keyboard shortcut:
Ctrl+Alt+Sto jump straight to settings.
2. Navigate to Symbol Settings
In the left sidebar of the Settings panel:
- Expand the Debugging section.
- Select Symbols (source server support is integrated with symbol configuration here).
3. Turn On Source Server Options
Scroll down to the Source Server section (near the bottom of the Symbols page):
- Check the box labeled "Enable source server support".
- Optional: Enable related settings like "Enable source server authentication" (if your source server requires it) or "Cache source files to disk" to avoid re-downloading sources repeatedly.
4. Confirm Your Symbol Path
Make sure your symbol path includes the Microsoft public symbol server (if debugging Microsoft binaries) or your internal source server. You can set this in the Symbol path field above the Source Server section—for example:
srv*C:\LocalSymbolCache*https://msdl.microsoft.com/download/symbols
This tells WinDBG to cache symbols locally in C:\LocalSymbolCache and fetch from the public server when needed.
5. Save Changes
Click the Save button at the bottom of the Settings panel. Most changes take effect immediately, though you might need to restart WinDBG Preview for some configurations to stick.
After setting this up, when you debug a process with properly indexed symbols, WinDBG will automatically connect to the source server and pull the matching source files.
内容的提问来源于stack exchange,提问作者Joel

