vs2012 Remote Debugging

Source: Internet
Author: User

Do not know if you have encountered this situation, just developed the program, clearly in this machine can well run, but deployed to the server over-distributed to the user, always appear inexplicable error.

1:30 will see no problem, how to do? Is it only possible to install a VS and follow code on a server or client computer?

Not really, VS has a function of remote debugging.

This is the case, the program runs on other computers, but we can track breakpoints on the local computer.

Let's take vs2012 as an example to introduce you to remote debugging without authentication (if you want to use authentication and no domain environment, see the final summary), as well as the vs2012 and previous versions of the remote debugging functionality improvements.

1, open the "Remote Debugger" folder from the Start menu, open, you will see two folders, this is to be copied to the remote computer, only need to choose from two in accordance with the specific circumstances of a copy of the past.

2, after copying, open the VS Remote Debugging Monitor ("Msvsmon.exe") on the remote computer, the window will appear, click on the Options menu, check no authentication and allow any user to debug.

Then click OK, so the remote computer is set up. Of course, don't forget to start the program you want to debug on the remote computer.

3, then, we on their own computer, open the project, from the Debug menu to open the Attach to the Process window, select Remote, enter the remote computer's IP, and then enter;

Then select the program you want to debug and click the Attach button. OK, point a breakpoint, try it.

vs2012 Remote Debugging

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.