Asp.Net Core additional debugging process

The first: VS debugger vs open project, F5 to start debugging

The second: attach to w3wp.exe process debugging

First, install the package NET Core Windows Server Hosting

Installed .NET Core hosting bundle, address https://docs.microsoft.com/zh-cn/aspnet/core/host-and-deploy/iis/?view=aspnetcore-2.2

Second, publish to iis hosts file configuration

 

 

 

Right Project properties, find commissioning, start selecting IIS, URL configuration we enter the domain name, hosting model selection in the process.

Right project release, configuration options debug version, click Save, click Publish.

 

 

 Open IIS, set up a site, domain name configured testapi.com, the physical path to the folder you publish the address, edit the application pool, select the .Net CLR version

 

 Back to VS, found attached to the process, find w3wp.exe, code debugging.

Third: Additional debugging process to dotnet.exe

1. Open a command prompt with administrator, switch to the address we just published folder, enter the command dotnet WebApiTest3.dll, WebApiTest3 is the name of the project, enter, we will start to see the site succeed.

 

2. Additional to dotnet.exe back to VS, find dotnet.exe, additional.

 

Guess you like

Origin www.cnblogs.com/lichli/p/11110807.html
Recommended