/// <summary> /// Parse the Windows sympath format /// </summary> /// <param name="windowsSymbolPath">windows symbol path</param> /// <returns>if false, failure</returns> private bool ParseSymbolPath( IntPtr self, string windowsSymbolPath) { if (windowsSymbolPath == null) { return(false); } return(_symbolService.ParseSymbolPath(windowsSymbolPath)); }
/// <summary> /// Set the windows symbol path converting the default "srv*" to the cached public symbol server URL. /// </summary> /// <param name="symbolPath">The windows symbol path to translate and set</param> /// <returns>if false, error parsing symbol path</returns> public static bool ParseSymbolPathFixDefault( this ISymbolService symbolService, string symbolPath) { // Translate dbgeng's default .sympath to what the public version actually does. Normally "srv*" // means no caching and the server path depends on whether dbgeng is internal or public. if (symbolPath.ToLowerInvariant() == "srv*") { symbolPath = "cache*;SRV*https://msdl.microsoft.com/download/symbols"; } return(symbolService.ParseSymbolPath(symbolPath)); }