Is there a way or tool by which I can debug .net dll assemblies in staging server. I have a ASP.NET web dlls deployed on staging server.
Updates
- Implementing debugging logic within code to turn off/on debugging. (from @maple_shaft)
- ASP.NET Remote debugging. (from @maple_shaft)
Question:
- Is there a trace option in ASP.NET which can be turned off/on on *.config file, allows display of every class is running, like *.ASPX trace function.
Any idea would be very much appreciated.
The best way is to put logging code throughout your code so that you can switch to the debug level in your logging configuration.
Apart from this true debugging can be done remotely using Visual Studio, however there are some prerequisites:
1) Your assemblies deployed to staging must be built in Debug mode.
2) You must have the appropriate firewall exceptions for the remote debugging ports open on the staging server.
Your app deployed on staging is probably built in Release mode, making it impossible to do remotely, however you can always build a deployment in Debug mode and manually redeploy to your server to do this.
As far as firewall exceptions go, you will have to go through the right channels in your organization to get firewall exceptions made for you if they are needed.