Datatips (mouse hover over variables in debug mode

2019-01-22 06:38发布

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.

8条回答
Summer. ? 凉城
2楼-- · 2019-01-22 07:07

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.

查看更多
Fickle 薄情
3楼-- · 2019-01-22 07:07

enter image description hereUsing remote debugging on another machine makes it more challenging.

This thread talks about RPC Server being unavailable when using "Use Managed Compatibility Mode", which makes remote debug impossible with Managed Compatibility Mode

Remote Debugging not working. "Unable to attach to process. The RPC server is not available."

Native compatibility had the same effect.

It was only "Use legacy C# and VB expression evaluators" that allowed hover over variables AND remote debugging in my case.

查看更多
做自己的国王
4楼-- · 2019-01-22 07:12

I have found this solutions:

Updated:

  • maybe you have Release build configuration

  • set Code Optimization property to Disabled under Project property windows

as adviced in similiar question on SO

查看更多
Bombasti
5楼-- · 2019-01-22 07:14

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.

查看更多
时光不老,我们不散
6楼-- · 2019-01-22 07:15

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

查看更多
7楼-- · 2019-01-22 07:17

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

查看更多
登录 后发表回答