开发者

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

开发者 https://www.devze.com 2023-02-06 09:27 出处:网络
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.

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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号