'Debug your functions while running unit tests?
I am using Visual Studio 2022; when I click "Test -> Run All Tests," the breakpoints in the code that is actually being tested are not being hit. If I click "Test -> Debug All Tests," it debugs just the test method and not my actual code. I want to debug the actual code. Is there any way to do that? There is an answer that says I could do that using 'Tests in Current Context' option but I can't seem to find that.
Solution 1:[1]
Do you have a breakpoint in your actual code? if you do, IDE will hit that point in your code while the test is running.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Ogunlade Olawale |
