How to eliminate certain annoying message during framework source code debugging
While debugging the framework source code I always get this annoying message from the studio:
Some bytes have been replaced with the Unicode substitution character while loading file C:\Users\markk\AppData\Local\Temp\SymbolCache\src\source.NET\4\DEVDIV_TFS\Dev10\Releases\RTMRel\ndp\fx\src\Core\Microsoft\Scripting\Compiler\VariableBinder.cs\1305376\VariableBinder.cs with Unicode (UTF-8) encoding. Saving the file will not preserve the original file contents.
As a result, the source code is open in mo开发者_StackOverflowdified mode (with an asterisk in the name). This is hugely annoying.
Does anyone know how to make it go away? I am using VS2010.
Thanks.
It seems a vs2010 bug. I tried but i cannot reproduce it.
This maybe could be a easy workaround:
go to visual studio option --> Debugging
in the general options you should uncheck "Require source files to exactly match the original version"
hope this helps
Just ran into similar issue and found a way to fix it:
- Open "Region" from Control Panel
- Choose "Administrative" tab
- Check if "Language for non-Unicode programs" is any UTF-8 or Unicode language that other than English (In my case it is Chinese). If so, click "Change system locale..." to change it to English.
It then works after locale change and rebooting.
I think you have to change the file encoding to UTF-8 outside of VS2010.
You should be able to turn off the message (or any other message) by using the Debug > Exceptions dialog. If it's not there you can add it to the menu or use Quick Access in the Productivity Power Tools. With the Exceptions dialog you can turn off exceptions when they are thrown or unhandled. You can add your own exceptions if your exception isn't in the list.
MSDN: How to: Break When an Exception is Thrown
精彩评论