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

What are the server controls in asp.net?

689


Differentiate between namespace and assembly.

752


What is the difference between “Web.config” and “Machine.Config”?

911


How to make sure that contents of an updatepanel update only when a partial postback takes place (and not on a full postback)?

735


How do I use response redirect?

754


What is autopostback true?

820


Explain about solution explorer window?

824


Explain the path instructions in xaml?

785


Give some salient points of difference between request processor and request dispatcher.

857


What is the life cycle of an asp.net page?

712


What is a uri query?

781


How do u optimize a query in asp.net?

781


Explain the difference between AutoPostBack and IspostBack in ASP.NET?

821


What kind of data we can store in viewstate?

806


Can you explain one critical mapping? Performance issue which one is better?

690