简体   繁体   中英

How to get .net core 2.1 mvc web application debugged on a remote server?

I have the default .net core 2.1 MVC application open with build mode set to debug. It is being hosted on IIS Server running on windows server 2016.

I publish the solution to a mapped network drive of a remote server with configuration set to debug from visual studio. When I connect to the "w3___" process it open's up a debug session but all breakpoints have the following message and don't get hit:

"The breakpoint will not currently be hit. No symbols have been loaded for this document"

Please advise on how to get breakpoints working.

For those still wondering about this, the question was answered by @Lex Li. For .net core you need to attatch to dotnet.exe rather than the w3 process.

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