Link to home
Start Free TrialLog in
Avatar of jazzIIIlove
jazzIIIloveFlag for Sweden

asked on

remote debugger for .NET? Should i install something on the remote server?

Hi;

I need to do remote debugging on a server that I am not admin. The owners of the server don't want me to install Visual Studio on that server. Any painless way to handle this?

Best regards.
Avatar of Mlanda T
Mlanda T
Flag of South Africa image

An efficient and less invasive way to do remote debugging is to improve your logging. You don't really need to connect Visual Studio to the remote machine. Add enough logging to your application and it will help you to get a very good view into what is going on there.

A good logger for .NET is log4net (http://www.beefycode.com/post/log4net-tutorial-pt-1-getting-started.aspx)

1 - It's easy to add to your solution (via Nuget)
2 - It will log a lot of details about the exception
3 - It can write to a text file OR send the logs to a UDP port
4 - You can use a tool like Log2Console to vierw the logs and see what is happening internally in the system in real time (https://log2console.codeplex.com/)
5 - Log2Console gives you a really nice view into your application with excellent filters and stuff.
log2console-logfiles.png
Avatar of jazzIIIlove

ASKER

Hi;

I have extensive logging on the server. My question is about rather live debugging.

Br.
ASKER CERTIFIED SOLUTION
Avatar of Mlanda T
Mlanda T
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial