简体   繁体   中英

Unable to debug in-process web project (ASP.NET Core Module)

I'm experimenting with the ASP.NET Core Module introduced in ASP.NET Core v2.2.0, specifically the in-process hosting. I am able to get it to work in production, but while developing, Visual Studio warns me that breakpoints won't be hit because no symbols have been loaded for the document.
I suspect this has to do with the in-process mode, Visual Studio doesn't know how to attach itself to the service ( w3wp.exe ).

Does anyone know what I'm missing? As soon as I switch to out-of-process hosting, the breakpoints work as they should.

https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/aspnet-core-module?view=aspnetcore-2.2

在此输入图像描述

(I can't put it in a simple comment as I don't have needed reputation)

Maybe have a look at this stackoverflow question if you haven't. Personnaly, last (and only) time I had this "error" on a breakpoint, I had to install again VS.

I got a same issue. What I noticed is that in runtime value of modules="AspNetCoreModuleV2" is changed to modules="AspNetCoreModule" in my Web.Config file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM