"Ignore and continue" while debugging on Visual Studio (2008 & 2010) in C# possible?
Is there a way to "Ignore and Continue" instead of "Restart" and "Edit" when a C# file in your solution changed while debugging?
Way to reproduce it:
I have a solution that contains project A and project B.
While debugging project A, I make changes to project B (a typical example is network client/server debugging s开发者_开发技巧ession).
Carry on debugging session on A becomes impossible (eventhough the code is totally unrelated in terms of execution) if "Edit" fails.
I searched in VS options without much luck.
Splitting the solutions into multiple solution file is not an acceptable answer (I have files as links and I already do that and it proves unconvenient due to libraries and dependency... that is the whole point of having a solution file in the first place)
Undo your changes (Ctrl+Z) and press F5 to continue.
If you want to retain your changes for later use, you can keep them in the clipboard or restore them using Ctrl+Y later.
I assume that an ignore option does not exist because it does not make much sense to debug source code that has become out of sync, e.g. the debugger would no longer highlight the correct lines etc.
There are by design limitations of the Edit & Continue feature.
Here is a list of them for VS 2010:
http://msdn.microsoft.com/en-us/library/ms164927.aspx
精彩评论