Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does debugging a C# project display C++/CLI symbols?

Tags:

I've got a strange problem with some C# library and console projects (but not ones I create from scratch) where they are displaying the watches and the smart tags for debugging using C++/CLI notation (for example, showing System::Object^ where I would expect System.Object):

C++ debug smart tag

I've tried changing the project guids, as I thought this was the problem (and some had changed), deleting obj/debug folders, restarting Visual Studio 2010, repairing Visual Studio 2010 and even the old favourite restarting Windows.

Is there any obvious setting I'm missing that has somehow been enabled?

like image 610
Chris S Avatar asked Mar 28 '12 15:03

Chris S


People also ask

What does debugging mean in C?

Debugging is a methodical process of finding and reducing the number of bugs (or defects) in a computer program, thus making it behave as originally expected. There are two main types of errors that need debugging: ▶ Compile-time: These occur due to misuse of language constructs, such as syntax errors.

What is the point of debugging?

The purpose of debugging is to locate and fix the mistake. The testing process does not help the developer figure out what the coding mistake is -- it simply reveals what effects the coding error has on the program.

Is debugging a good thing?

Debugging makes you a better learner, the practice of detecting the errors made in your written code and correcting them offers an opportunity to learn new tricks and skills to help you debug faster in the future.


1 Answers

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.

like image 53
Dan Weaver Avatar answered Nov 12 '22 06:11

Dan Weaver