How do I debug an ASP.NET application that wasn't written
with Visual Studio.NET and that doesn't use code-behind?

Answer Posted / asra

Start the DbgClr debugger that comes with the .NET
Framework SDK, open the file containing the code you want
to debug, and set your breakpoints. Start the ASP.NET
application. Go back to DbgClr, choose Debug Processes from
the Tools menu, and select aspnet_wp.exe from the list of
processes. (If aspnet_wp.exe doesn't appear in the
list,check the "Show system processes" box.) Click the
Attach button to attach to aspnet_wp.exe and begin
debugging.
Be sure to enable debugging in the ASPX file before
debugging it with DbgClr. You can enable tell ASP.NET to
build debug executables by placing a
<%@ Page Debug="true" %> statement at the top of an ASPX
file or a <COMPILATION debug="true" />statement in a
Web.config file.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is viewstate secure?

733


What’s the difference between asp.net web forms and asp.net mvc?

805


What is round trip in asp.net?

693


What is a user developed application?

722


How is it possible for .NET to support many languages?

497


What is difference between ispostback and autopostback in asp net?

715


Is data edited in the Repeater control?

796


Describe paging in asp.net?

886


Is viewstate enabled by default?

731


Describe the sequence of action takes place on the server when ASP.NET application starts first time?

844


What is cas?

809


What is Dynamic Web and discuss its usage with the help of real life examples?

807


What are demand-paging and pre-paging?

748


What is the extension of master page in asp.net?

756


How do you implement sql caching in asp.net?

776