In Development
Last Updated: 01 Apr 2022 10:35 by ADMIN
Mihail
Created on: 15 Jul 2020 09:55
Type: Bug Report
3
Breakpoint is not hit inside an async test

When a breakpoint is added inside an async test that uses JustMock the debugger is failing to hit it. 

To reproduce the issue follow the next steps:

1. Open the attached project

2. Create a breakpoint at the first arrangement in the async test method.

3. Start debugging the async test

Result: the breakpoint is not hit.

The issue is observed for both .NET Core and .NET Framework.

Attached Files:
3 comments
ADMIN
Ivo
Posted on: 01 Apr 2022 10:35

Hello Everyone,

We have managed to find the workaround - disable repository reset performed by the profiler during instrumentation by adding DisableAutomaticRepositoryResetAttribute to the async test method currently being debugged, see below:

[TestMethod]
#if DEBUG
[DisableAutomaticRepositoryReset(AllowMocking = true)] // this line makes debbuging possible, please refer to the inline documentation for importatnt notes
#endif
public async Task AsyncTestMethod()
{
    ...
}

I hope it could be useful until the issue gets fixed.

Regards,
Ivo
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

ADMIN
Mihail
Posted on: 08 Oct 2020 10:07

Hi Quentin,

I agree that the issue is quite annoying. We are planning to investigate the issue until the end of this month or around the beginning of November. Once we have more information about the issue we will update the item.

Please excuse us for the inconvenience.

Regards,
Mihail
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Quentin
Posted on: 05 Oct 2020 12:38

Hello,

Is there any plan on that subject. It's pretty annoying to develop some tests without being able to debug it in visual studio.

 

Thank you very much