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
What is the difference between session.abandon() vs clear()?
Define dll hell?
What is repository pattern in mvc.net? : asp.net mvc
What is the difference between application state and caching?
Can we set master page as a start page?
How can we access static variable?
What are the HTML server controls in ASP.NET?
What is cookies in asp net?
Any disadvantages in Dataset and in reflection ?
How would you turn off cookies on a page of a website?
What is a 401 redirect?
Explain global assembly cache.
What are the elements of a website?
How many types of session state management options available in asp.net?
Can the validation occurs in server-side or client-side? If the validation occurs why should we do?