This article is a mirror article of machine translation, please click here to jump to the original article.

View: 26948|Reply: 0

[Source] vs2017 Remote debugging asp.net mvc website project

[Copy link]
Posted on 5/23/2018 5:27:57 PM | | | |
First, let's talk about the operating environment. The project asp.net MVC version is 4.5, and the remote server is Windows Server 2016 x64-bit system, and the native win10 x64-bit system is the system.
VS installation directory to find the Remote Debugger directory, there will be 3 versions "Appx", "x64", "x86" under the directory, since our server is an x64-bit version, so copy the x64 folder directly to our remote server.

Remote Debugger directory

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\Remote Debugger

The many wrong directories on the Internet are: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE

We open the folder we just copied on the remote server, find the "msvsmon.exe" program and run it as an administrator, and set it in the tool options as follows:

(No authentication, allow any user to debug, ports can be set by themselves or leave the default)



We publish the project to the server, and when we publish,Note that the configuration is selected as the "Debug" optionAs follows:



Package the generated release package and upload it to the server for publishing, there are steps, so I won't talk about it here.

The code that needs to be debugged for the controller is as follows:



Let's request it directly, and it returns normal, as follows:



Remote commissioning

In VS, select Debug - Attach to Process, select "Remote (Unauthenticated)" for the connection type, enter ip:port for the connection and destination, and enter! As shown below:



Select the process that needs to be debugged below, the process named "w3wp.exe", and attach it! Re-requesting the URL, we can find the power failure that successfully entered the settings, as shown in the figure below:

VS Remote Debug "Debug operation takes longer than expected" solution
https://www.itsvse.com/thread-4793-1-1.html
(Source: Architect_Programmer)




Finally, attach links to various MS remote debugging help documents:The hyperlink login is visible.




Previous:VS Remote Debug "Debug operation takes longer than expected" solution
Next:SSO single sign-on is a P3P protocol for synchronous login/exit
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com