Nunit not stop on break point

Tomas Garijo 6 Reputation points
2022-06-22T15:17:53.947+00:00

Hello everybody

I'm going to try explain what it happen. I've one project on Net Core 6, its a library project. In this project I installed

Nunit 3.13.3,
NUnit3TestAdapter 4.2.1,
Microsoft.NET.Test.Sdk 17.2.0,
MSTest.TestAdapter 2.2.10,
my visual studio community version is 17.2.4,

the project is very simple because its a test, it has two classes, the first one implement a simple code has a breakpoints on specific sentences and the second one is test class

My problem is when I try to debug the project the test execution no stop on class breakpoints.

In the same solution I have other netframework 4.7.2 project and I don't have any problem for test execution stop on many breakpoints.

I did all types of thing, for example repair vsstudio, uninstall libraries, modify configuration, but all that it doesn't work.

Could any one help me?

Thank you.

Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
1,002 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
351 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 29,511 Reputation points Microsoft Vendor
    2022-06-23T09:59:45.493+00:00

    Hi @Tomas Garijo ,

    Welcome to Microsoft Q&A!

    Please update your VS2022 to the latest version. And ensure that you debug your project in Debug mode.

    Besides, please choose Debug for your tests in Test Explorer, instead of running your tests.

    Sincerely,
    Anna
    *
    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.