VS Remote debugging project, using Msvsmon

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.