We have answer of your question!

100% solved queries, no empty question

Question: Debugging xunit test from VS: symbols loaded but not as user code


I'm trying to debug my unit tests (xunit) under Visual Studio 2012 (via Test Explorer -> Debug Selected Test). But I can't step into my code of target library. In Modules window I see, what my library symbols are loaded, and the symbol file is found. But in "User Code" column it marked as "N/A" (like all other libraries, include running test library). Project in Debug configuration isn't optimized, just xml documentation file generation is defined.

How to make VS determine my libraries as "user code" in debug mode?

Question author Win4ster | Source



Solved! Problem was in code. I'm using method which return IEnumerable<> via yield return, and I just call this method (without any iterations on results). So because of yield returns specifics actually this method wasn't called.

So, be careful with yield returns! It may lead to "strange" behaviour like this one :)

Answer author Win4ster

Tickanswer.com is providing the only single recommended solution of the question Debugging xunit test from VS: symbols loaded but not as user code under the categories i.e debugging , visual-studio-2012 , debug-symbols , . Our team of experts filter the best solution for you.

Related Search Queries:

You may also add your answer

Thanks for contributing an answer to Tick Answer!