In the Start menu of this machine, locate the remote Debugger Folder in the VS directory
Depending on the version of the server, select a 32-bit or 64-bit subfolder to copy to the server
Run the msvsmon.exe in the folder on the server, and note that if the account you are logged into is not an administrator, you should run it with administrator privileges.
After running, you can modify the port number and authentication mode in the tools-options, authentication can choose to use your login server's account password, or can use no authentication method, but the latter is not secure, allow anyone to connect.
If you are Windows authentication, you can explicitly specify permissions, which you typically use with debug permissions
After the configuration is complete, go back to native vs, select Debug-Attach to process.
If you use Windows authentication, the transfer option is used with the default value, otherwise remote (no authentication) is used, and the qualifier is populated with the port set in the server Ip+msvsmon. Note that if the server turns on the firewall remember to set the Allow rules;
Fill in and click the Refresh button to find the W3wp.exe process, the same name process may have multiple, find the process to debug the site, click the Attach button. Note that if you do not see your site process, the site may not be turned on, or the "Show all user Processes" in the lower left corner is not checked.
This allows you to open the Web site in a browser and debug it natively. Note that when the Web site is published to the server, the debug mode is selected, and the PDB file is retained, otherwise the breakpoint will not be killed.
VS Remote debugging project, using Msvsmon