How can we debug with InMemoryDatabase and how can we know exactly the key is duplicate?

Kha Vo
20
Reputation points
How can we debug with InMemoryDatabase Unit test?
Also I have question that when I get this error for example "An item with the same key has already been added. Key: 16c568e8-b00d-46b2-ab27-cdb7685839ae" why VS don't point exactly what entity is duplicate key? I can't also in Callstack
Or another example that when we get error "Null Reference Objection. Object reference not set to an instance of an object" I don't see what exactly object is null.
Should we have the new update for VS of this point? It will help developer saving time and more convenience while working.
Thanks.
Developer technologies | .NET | Entity Framework Core
780 questions
Developer technologies | ASP.NET | ASP.NET Core
4,830 questions
Developer technologies | Visual Studio | Other
5,458 questions
Sign in to answer