How do you debug C# TestProject

Posted on 2012-09-11
Last Modified: 2012-09-13
If you create a C# Test project, how can you step into the test? Especially if the test is for a ASP.NET app.


Question by:gswitz
    LVL 25

    Expert Comment

    by:Luis Pérez
    Visual Studio has many debugging options.

    Try these links:

    Hope that helps.
    LVL 7

    Expert Comment

    Put the break point in the test case and press CTRL + R + T

    Author Comment

    ctrl+r+t isn't working for me. The break point has a yellow exclamation and is disabled.
    LVL 55

    Accepted Solution

    try to attach the IIS Process: either aspnet_wp.exe or w3wp.exe
    Also verify that all the projects are running in debug mode and are configured for the same .net version

    Author Closing Comment

    I don't want to have to attach to a process to debug a test project, but if that's what it takes...

    Thanks for your help.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    In my previous article ( we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
    This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now