Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Datatips (mouse hover over variables in debug mode) not working in Visual Studio 2012 / Win 7 64bit

When I hover my mouse over a variable when debugging a C# app in Visual Studio nothing popups. I expect to see the value of the variable (aka datatips). I'm running Visual Studio 2012 Ultimate (trial edition) on Windows 7 64bit. Does anyone know what may prevent them from showing?

Things I've tried to no avail: - Reinstall VS - Search for an enable/disable setting but there doesn't seem to be one

I can see the datatips correctly with the same C# project on Windows 8/64bit with the same version of Visual Studio.

like image 427
pilcrowpipe Avatar asked Oct 01 '13 05:10

pilcrowpipe


People also ask

How do I enable debugging in Visual Studio?

In the Visual Studio toolbar, make sure the configuration is set to Debug. To start debugging, select the profile name in the toolbar, such as <project profile name>, IIS Express, or <IIS profile name> in the toolbar, select Start Debugging from the Debug menu, or press F5.

How do I debug a variable in Visual Studio?

Go to menu Debug->Windows->Locals to make it appear. Watch Although it is a little manually you also can use 'Watch' you can drag and drop any variable to this window or right click then add to watch. Go to menu Debug->Windows->Watch to make it appear. Note.


9 Answers

THis helped me: you need to open in VS Tools | Options | Debugger | General and enable the flag [Use Managed Compatibility Mode].

like image 177
droschmisch Avatar answered Oct 02 '22 15:10

droschmisch


Before running the application check you are running it in Debug mode. If set to Release mode change it to Debug and then run. The debugger will then provide the data-tips.

enter image description here

like image 24
Obraine Avatar answered Oct 02 '22 15:10

Obraine


I have found this solutions:

  • reinstall Visual Studio as advised here, but you have already tried it

  • Open your VS->Tools->Import and Export Settings Wizard->Reset all settings->No, just reset settings, overwriting my current settings-> Choose a Default Collection of Settings from MSDN Forum: Debugging - hover watch has stopped working

  • maybe you have Release build configuration

  • set Code Optimization property to Disabled under Project property windows

as advised in similar question on SO

like image 25
MikroDel Avatar answered Oct 02 '22 14:10

MikroDel


I had this problem so I deleted all the *.suo and *.user files I could find in the solution directory and that seemed to fix it.

like image 44
Dan Stevens Avatar answered Oct 02 '22 15:10

Dan Stevens


I had this same problem. My project had somehow gone into Release mode, so I changed it back to Debug mode via Build|Configuration Manager and it was working again, the datatips reappeared.

like image 20
Daren Avatar answered Oct 02 '22 14:10

Daren


The same happened to me but only with C#, active mode administered compatibility (Managed Compatibility Mode) and it worked well, then I wanted to modify the code while had debugged and came out a motioning message

compatibility mode administered is not supports edit and continue

Then turn it off again, under native support is (Use the legacy C# and VB expression evaluators) enable this option and you can see the value of objects and edit code debugging.

like image 45
Bryan Zambrano Avatar answered Oct 02 '22 13:10

Bryan Zambrano


I realize this is an older post. But I have the exact problem in Visual Studio 2019. The funny thing is that datatips are not showing on my external screens. But if I drag Visual Studio to my laptop screen, it shows without problems. Dragging it back to one of the two external screens and it won't show.

I also have a problem that the Project Properties and Team/Source Control Explorer does not show anything but white content until I switch to another tab and then back. Then it loads. I have tried enabling GPU support in Windows, but nothing.

Has anyone had the same experience?

I will of course try all of the suggestions for the datatips thing, as that's really decreasing my effectivity.

like image 20
Mats Magnem Avatar answered Oct 02 '22 13:10

Mats Magnem


Try deleting the .vs directory and restarting visual studio.

like image 24
liteflier Avatar answered Oct 02 '22 15:10

liteflier


This 3 combinations solved it for me.
- Make sure you are in Debug mode
- Uncheck/Disable Use the legacy C#,VB.NET evaluator (Tools->Options->Debugger)
- Make sure Enable Just My Code is checked.

like image 20
Mohsen Karbassi Avatar answered Oct 02 '22 13:10

Mohsen Karbassi