我们在 .Net Framework 中调试正在运行的“IISExpress”进程的方法是在 Visual Studio 中附加一个名为“iisexpress.exe”的进程。但附加iisexpress进程在.Net core中不起作用。它显示消息 - “当前不会命中断点。尚未为此文档加载任何符号。”
最佳答案
要在 .Net core 中调试正在运行的 iisexpress 实例,您必须在 Visual Studio 中附加“dotnet.exe”进程。
*更新 - 1:如果 dotnet.exe 不适合您,请同时检查“{projectName}.exe”。
*更新-2:附加“iisexpress.exe”适用于.net 5
关于asp.net-core - ASP.NET核心: Debug -Attach to process is not working,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49297775/