Showing posts with label Debugging. Show all posts
Showing posts with label Debugging. Show all posts

Wednesday, 16 February 2011

Debugging, Tracing and Instrumentation in .NET and ASP.NET (14 FAQ) by Shivprasad koirala

A nicely explained article about Debugging, Tracing and Instrumentation in .Net.
This article is posted on Code Project by Shivprasad koirala.
He has explained everything in such a nice way with nice images and videos that you will understand all the pin point of Debugging, Tracing and Instrumentation in .Net.
Let me put some contents from his post:
What is Instrumentation?
Debugging application is not just about pressing F 10 or F 11 and watching “add watch windows” using visual studio IDE. Debugging becomes pretty complex on production environments where the project is deployed in a release mode and you need to figure out till what point the code ran and when did it crash. The worst part is you are enjoying your sleep at home and suddenly someone calls up and says, “Hey! the application crashed in production”.If your application is well planned with proper instrumentation you can just say the person to view the event viewer or a log file for further details and you can give the solution on the phone itself.So defining instrumentation in short, it’s the ability of the application to monitor execution path at critical points to do debugging and measure performance.
What is debugging and tracing?
We would like to enable application instrumentation in two situations while you are doing development and while your application is in production. When you monitor application execution and performance in development stage is termed as “Debugging” and when you do in deployed environment it’s termed as ‘Tracing’.


Thanks to Shivprasad koirala for posting such a useful and knowledgeable articles.
Hats off to you!!!
~jawed

Monday, 7 September 2009

Debug your ASP.NET Application which is hosted on "Remote IIS Server"

A very nice article to read about how to debug an Application hosted on Remote IIS server by dear ABHIJIT JANA.

In this article ABHIJIT has explain all the aspect of debugging application like

1. Visual Studio Internal Debugger
2. Local IIS Debugging
3. Remote IIS Debugging


He has used nice figures and diagrams to explain the debugging skill.

Fig: Block Diagram for Remote debugging of ASP.NET Application with msvsmon

Few words from his Article:

The tool which is used to remote debugging of the ASP.Net application know as "Msvsmon.exe" . The Remote Debugging tool (Msvsmon.exe) is a small windows based application that Visual Studio 2005 uses for remote debugging. It has very simple UI which makes it very simple to setup and configure during remote debugging, Visual Studio 2005 runs on one computer and the Remote Debugging Tool runs on the remote computer along with the application you are debugging.

If we want to debug the application which is hosted on remote IIS, we have to start the msvsmon.exe to the remote server, and our development system is the debugger host where we will debug our code.

OverAll Summary Provided by through diagram as:



Please click here for more details.

Thanks,
Md.Jawed