Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

2 Pages<12
NCrunch 4 - Optimized mode - Debugging tests is mission impossible?
Remco
#23 Posted : Friday, November 29, 2019 10:56:19 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 5,926

Thanks: 773 times
Was thanked: 992 time(s) in 945 post(s)
Thanks everyone. I now have a sample to reproduce the async inspection issue until .NET Core. I'll post a build here as soon as a fix is available.
Advisto
#19 Posted : Friday, December 6, 2019 3:55:03 PM(UTC)
Rank: Member

Groups: Registered
Joined: 10/15/2018(UTC)
Posts: 10
Location: Netherlands

Was thanked: 1 time(s) in 1 post(s)
Remco;14153 wrote:
Thanks for sharing this problem.

Do you have a way to run this code without NCrunch, and if so, can you confirm 100% whether the behaviour is different under NCrunch?

I've tried constructing a code sample using the lines you've shared, but I can't seem to get this to fail in the same way ... is there any chance you can reproduce this in a code sample you can share with me?

Any news on this topic Remco?
Remco
#20 Posted : Friday, December 6, 2019 11:17:51 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 5,926

Thanks: 773 times
Was thanked: 992 time(s) in 945 post(s)
Advisto;14195 wrote:

Any news on this topic Remco?


Sorry, no fix is available yet for the async local variables issue.

We're working on it. This is in quite a complex area of the product, and right now we're also very busy with .NET Core 3.0 issues, which are a higher priority as they don't have a workaround.

If this issue is causing problems for you, it's possible to work around it by just switching back to the Legacy instrumentation mode. You can also force the compiler to build a non-portable PDB (which will also work around the issue), by adding a 'Custom build property' of 'DebugType' to 'full' in your NCrunch configuration.
Remco
#24 Posted : Tuesday, December 10, 2019 1:25:56 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 5,926

Thanks: 773 times
Was thanked: 992 time(s) in 945 post(s)
1 user thanked Remco for this useful post.
EsbjornRedmo on 12/11/2019(UTC)
EsbjornRedmo
#25 Posted : Wednesday, December 11, 2019 7:43:03 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 8/17/2017(UTC)
Posts: 3
Location: United Kingdom

Thanks: 3 times
Was thanked: 1 time(s) in 1 post(s)
Yes - fixes the issue. Thank you!
1 user thanked EsbjornRedmo for this useful post.
Remco on 12/11/2019(UTC)
Advisto
#26 Posted : Thursday, January 9, 2020 6:40:48 AM(UTC)
Rank: Member

Groups: Registered
Joined: 10/15/2018(UTC)
Posts: 10
Location: Netherlands

Was thanked: 1 time(s) in 1 post(s)
I totally missed your post with version 4.2.0.5. I just came here to work out a reproduction today, but with 4.2.0.7 this issue is still the same. I'm currently working on a reproduction, but this will have some production code. When I have a small repro, can I share it with you in a private way?
michaelkroes
#27 Posted : Thursday, January 9, 2020 6:44:35 AM(UTC)
Rank: NCrunch Developer

Groups: Registered
Joined: 9/22/2017(UTC)
Posts: 201
Location: Netherlands

Thanks: 87 times
Was thanked: 41 time(s) in 39 post(s)
Advisto;14325 wrote:
I totally missed your post with version 4.2.0.5. I just came here to work out a reproduction today, but with 4.2.0.7 this issue is still the same. I'm currently working on a reproduction, but this will have some production code. When I have a small repro, can I share it with you in a private way?


Thanks for your willingness to create a sample! You can send them privately via the contact form or via email.
Advisto
#28 Posted : Thursday, January 9, 2020 7:51:10 AM(UTC)
Rank: Member

Groups: Registered
Joined: 10/15/2018(UTC)
Posts: 10
Location: Netherlands

Was thanked: 1 time(s) in 1 post(s)
michaelkroes;14326 wrote:
Advisto;14325 wrote:
I totally missed your post with version 4.2.0.5. I just came here to work out a reproduction today, but with 4.2.0.7 this issue is still the same. I'm currently working on a reproduction, but this will have some production code. When I have a small repro, can I share it with you in a private way?


Thanks for your willingness to create a sample! You can send them privately via the contact form or via email.

I've just submitted my reproduction via the contact form.
Remco
#29 Posted : Thursday, January 9, 2020 9:22:50 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 5,926

Thanks: 773 times
Was thanked: 992 time(s) in 945 post(s)
Advisto;14328 wrote:

I've just submitted my reproduction via the contact form.


Thanks! We'll get back to you as soon as we've had a chance to look at this in detail.
Remco
#30 Posted : Monday, January 13, 2020 11:36:54 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 5,926

Thanks: 773 times
Was thanked: 992 time(s) in 945 post(s)
Advisto
#31 Posted : Tuesday, January 14, 2020 6:39:17 PM(UTC)
Rank: Member

Groups: Registered
Joined: 10/15/2018(UTC)
Posts: 10
Location: Netherlands

Was thanked: 1 time(s) in 1 post(s)
To reproduce I've taken a copy of my productioncode and cut all non-relevant parts away. But indeed, it took some time to create.
Interesting that the assemblysize was relevant, because the reproduction was much smaller than the original. I did just delete code and after each delete check if the problem still existed.

Thanx, in this build the problem is fixed! And I'm happy to be able to use the optimized mode from now on :)
1 user thanked Advisto for this useful post.
Remco on 1/14/2020(UTC)
Users browsing this topic
Guest (2)
2 Pages<12
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.072 seconds.