Greg's profileGreg Olsen - Yellow Duck...PhotosBlogLists Tools Help

Blog


    April 07

    Debug ASP Pages with Visual Studio 2005

    I was given the task recently to redesign some old classic ASP pages which needed to consume a .NET Web Service. However, I wanted to debug the objects floating around in my ASP code. If you need to do this as well and want to find out how, then keep reading on.
     
    Below you will find a document download which outlines the steps required to successfully debug ASP pages within Visual Studio 2005. Make sure you have debugging enabled within IIS as well.
     
    Summary of the steps required to debug your ASP Page:
    1. View your ASP page within Visual Studio 2005. Open and existing file or view your file within Solution Explorer.
    2. Set a breakpoint on the ASP code line where you wish the debugger to hit.
    3. View the ASP page in the web browser (without debugging).
    4. Download the file listdlls.exe from http://technet.microsoft.com/en-us/sysinternals/bb896656.aspx
    5. Run listdlls.exe with the command of listdlls -d asp.dll from command line and find which dllhost.exe loaded the asp.dll.
    6. Within Visual Studio, from the toolbar menu select Debug | Attach to Process
    a. Locate the process by its process ID and attach to this process.
    7. Refresh the page (or F5) in the web browser. You should see the breakpoint get hit.
    8. Use QuickWatch within Visual Studio to explore the objects.
     
    Here is the detailed steps document download (Microsoft Word 2003 document):
     
    Enjoy!
     
    Greg Olsen
    Yellow Duck Guy

    Comments

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Trackbacks

    The trackback URL for this entry is:
    http://yellowduckguy.spaces.live.com/blog/cns!DA380C13569E8907!492.trak
    Weblogs that reference this entry
    • None