参考这篇文章
In order to be able to debug cross-platform, .NET Core has now a “portable PDB” format, and the newly introduced .NET Core debugger for Visual Studio Code only supports this format. Unfortunately by default, on Windows, the .NET Core build generates standard “Windows PDBs”, which are not supported. But the fix is easy, you just have to tell the compiler to generate portable PDBs.
为了能够调试跨平台,.NET 核心现在有一种"便携式 PDB"格式,和新引进的.NET 核心调试器的 Visual Studio 代码只支持这种格式。不幸的是,默认情况下,Windows 上.NET 核心生成产生标准"Windows Pdb",这不受支持。但是,此修复程序很简单,你只需要告诉编译器生成便携式 Pdb。