Why is Visual Studio 2010 pretty-printing in C++ mode while stepping through C# code?

橙三吉。 提交于 2019-12-08 17:20:49

问题


I am encountering a strange issue. i have all the latest updates in my PC. My OS is Windows 7. Can anyone help me out with this? I have tried resetting the Visual studio.

And here is the exact problem blown up to make it easier to see:


回答1:


The Hex display is because you chose that option (clicked on the toolbar), click on it again to switch back to the normal display. The C++/CLI type is not related to the Hex dispaly issue though.




回答2:


I had the exact same issue. To confirm, look in the call stack at a c# stack frame. For me it said C++ instead of C#. For anyone else with this problem:

I fixed it by looking at the compatibility settings for VSLauncher.exe, Devenv.exe, and the shortcut to Devenv.exe. One of them (VSLauncher.exe) has compatibility mode set to Windows XP. I turned that off and it was fixed.




回答3:


I ran into this issue as well, the debugger picked up c# and c++ in all c# projects. I'm running windows 7 64 bit.

I resolved this issue by going to the compatibility tab of the properties of the shortcut. It was checked as running as windows xp service pack 3. I unchecked that and still kept run as administrator checked. Suddenly my debugger picked all of it up as c# again.




回答4:


I solved the issue by re-installing the OS. But I do remember that i was installing lot of software while i was installing the Visual Studio that. might have corrupted the OS file



来源:https://stackoverflow.com/questions/9569670/why-is-visual-studio-2010-pretty-printing-in-c-mode-while-stepping-through-c-s

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!