Remote debugging ASP.NET applications on a server with static IP address

自古美人都是妖i 提交于 2019-12-12 10:57:34

问题


All of examples on web assume the remote server which we are going to debug remotely is on the same network. I have only a static IP address and using RDP I connect to server.

I've installed Remote Debugger on remote machine but cannot set the static IP address as Qualifier in visual studio -> debug -> attach to process


回答1:


The username@machinename construct displayed in msvsmon is the text that needs to go into the Qualifier box in Visual Studio -> Attach to Process.

For example, where msvsmon says:

msvsmon started a new server named 'tf@macmini'. Waiting for new connections.

you would type tf@macmini into the qualifier box.

For a machine out on the internet, I'd guess you use username@[ip address here], e.g.

tf@123.234.32.1

Though you will need to make sure, at a minimum, firewalls and authentication are set up correctly. (The debugging will not occur via RDP.) There's an article on the firewall side of this here. Can't remember off the top what the authentication involves, although I suspect as a minimum you will need an account on both machines with the same username and password.



来源:https://stackoverflow.com/questions/4753645/remote-debugging-asp-net-applications-on-a-server-with-static-ip-address

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!