Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7868725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T01:05:33+00:00 2026-06-03T01:05:33+00:00

TL;DR Can I still debug a test in the current context in VS11? Unit

  • 0

TL;DR Can I still debug a test in the current context in VS11?

Unit testing using mstest in Visual Studio (verified in 2010 and 11, and even 2008 apparently) has a command called Test.DebugTestInCurrentContext. It runs a single test in debug mode.

To use this command, you place your cursor anywhere in the method (the unit test in question) and then either

1 Use the (default) keyboard shortcut Ctrl+R, Ctrl+T

or

2 Use the menu option Test=>Debug=>Tests in Current Context. (2010, don’t know about 2008)

I’m now using VS 11 Beta, and found that hitting ^R,^T did nothing (is not a command). I checked the key bindings and found the command Test.DebugTestInCurrentContext, mapped it to ^R,^T as we expect, and tried again. This time the status bar reports:

The key combination (Ctrl+R, Ctrl+T) is bound to (DebugTestsInCurrentContext) which is not currently available.

Visual Studio 11 has a new Unit Test Explorer. After having run all tests once, it is populated with the solutions unit tests. At this point I am able to scroll…and scoll (I have a few tests), and find the one test I am interested in debug, and select it (highlight it). At this point I can right click => "Debug Selected Tests", or navigate the menu, Unit Tests=>Debug Unit Tests=>Selected Tests.

Thus, I have found I can debug a single unit test in VS11 by

1 Find the unit test in the unit test explorer after having run all tests

2 Select it

3 Execute "Debug Selected Tests"

Is there an easier way? Can I not use the old command to debug tests in the current context? Is that command obsolete?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T01:05:34+00:00Added an answer on June 3, 2026 at 1:05 am

    I decided to ask my question on the msdn forums. I got a response, in short: “the feature is broken in beta, will be back in rtm”

    Read the full answer here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using the Show/Remove Columns context menu option in the Test Results window I can
There is a well-known problem when unit testing managed C++ code in Visual Studio:
I have two unit test projects in my VS 2010 solution. Each project has
On testing with ruby debugger block_given? gives false but still executes, can someone explain
I just partially added shopping cart to my ecommerce test-site. It still can't do
I have a Test Project in Visual Studio I'd like to use to test
I want a ComboBox which has no drop-down button but can still be opened
Possible Duplicate: C++ delete - It deletes my objects but I can still access
When I disabled Numeric UpDown control I want that user can still read its
I've have gone through stackoverflow for days and googled a lot but can still

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.