Skip to content

Debugger should stop printing 'Cannot find or open the symbol file' for system assemblies #837

@gregg-miskelly

Description

@gregg-miskelly

Notes

I believe this issue will be automatically resolved when we stop using MIEngine for these scenarios. But opening this issue to verify the behavior.

Steps to reproduce

  1. Create a hello world .NET Core application (dotnet new)
  2. Open the folder in VS Code and start debugging

Expected behavior

Debugger shouldn't give warning sounding string ('Cannot find or open the symbol file') for files that are system assemblies, and therefore we are never going to debug anyway. Ex: in VS we print 'Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.':

'dotnet.exe' (CoreCLR: DefaultDomain): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\1.0.0\System.Private.CoreLib.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'c:\proj\clicon\bin\Debug\netcoreapp1.0\clicon.dll'. Symbols loaded.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\1.0.0\System.Runtime.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\1.0.0\mscorlib.dll'. Loading disabled by Include/Exclude setting.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\1.0.0\System.Console.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

Actual behavior

Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\1.0.0\System.Private.CoreLib.ni.dll'. Cannot find or open the symbol file.
Loaded 'd:\proj\clicon\bin\Debug\netcoreapp1.0\clicon.dll'. Symbols loaded.
Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\1.0.0\System.Runtime.dll'. Cannot find or open the symbol file.
Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\1.0.0\mscorlib.dll'. Cannot find or open the symbol file.
Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\1.0.0\System.Console.dll'. Cannot find or open the symbol file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DebuggerfixedFixed and available in the stable version of C# Extension.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions