I’m in VS2010, on a breakpoint. How can I cause a datatip to be displayed for a given variable/expression w/o using my mouse to hover it?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That can’t be done, exactly, but you can get the same result by selecting the variable you want to watch (using ReSharper’s Ctrl + Alt + →/← can speed this up), and pressing Shift + F9, which will raise “QuickWatch” modal window with the datatip contained within.
If you prefer, you can also go into Options->Keyboard and bind the
Debug.AddWatchto a different keyboard shortcut, and use that instead of Shift + F9, and then your variable data will persist in the Watch window so you can come back to it later (as suggested here)You can also do this by opening the command window (Ctrl + Alt + A) and typing
Debug.AddWatch variable_name.