I could not find Quick Watch in visual studio 2010 express. Do we only have the option for watch option and not quick watch in express editions?
No, the Quickwatch feature is not available in Express editions of Visual Studio.
It is a myth that it is only available from C++. Here is a screenshot from Visual Studio 2010 Professional, showing the QuickWatch in use for an ASP.NET C# project:
It is a myth that the key can be manually bound in Express editions. The command Debug.QuickWatch, while available in for-pay versions of Visual Studio:
is not available in Express editions (tested in 2008, 2010, 2012):
it is a myth that pressing Shift+F9 will make the QuickWatch window appear in Express editions
it is a myth that selecting
2010 Express: Tools -> Import and Export settings -> Reset All settings
2012 Express: Tools -> Settings -> Reset
will restore the ability to have a QuickWatch in Express editions.
From MSDN: How to: Use the QuickWatch Dialog Box
Visual Studio Edition Visual Basic C# C++ J#
===================== ============ === === ===
Express No No No No
Standard No No No No
Pro/Team Yes Yes Yes Yes
Some users might, therefore, wonder why QuickWatch is useful. Why not simply add the variable or expression to the Watch window? Well, you could do that, but suppose you simply want to do a quick scratch calculation involving one or more variables? You don't want to clutter up the Watch window with such calculations. That's where QuickWatch comes in.
Another nice feature of the QuickWatch dialog box is the fact that it's resizable. If you want to look at the members of a large object, it's often easier to expand and look at the tree QuickWatch than it is in the Watch, Locals, or Autos window.
In Visual Studio Express 2010 the QuickWatch dialog is available only for C++, any other language does not support that feature.
See this topic on MSDN: http://msdn.microsoft.com/en-us/library/cyzbs7s2.aspx
The Quick Watch feature should be available even in express SKUs of Visual Studio. What's likely happening is the particular menu isn't visible by default for some reason in the current profile. You can verify this is the case by doing the following while debugging
View -> Other Windows -> Command Window
Debug.QuickWatch theExpression
The Debug.QuickWatch command will directly invoke the quick watch feature. It will act exactly as if you'd type theExpression into the quick watch window.
Related
I have Visual Studio installed in one PC in which text editor is format redundant code by color (as shown in the screen shot).
I want to activate this in visual studio copy installed on another PC.
That is not a Visual Studio feature, it is one of ReSharper Code Inspection features, hence you'll need to install ReSharper on the computer where you'd like to see this code coloring...
This is a visual studio (mine is 2015) feature and should be enabled. By default it should be enabled, but am not sure what version of visual studio you are using. You can enable it by going to Visual Studio -> Tools menu -> Options
When debugging a C# application in Visual Studio 2015, I am very often getting this message when hovering the mouse over a variable:
After this it freezes and restart, making it impossible to debug.
Anyone have any clue?
Like that thread shared by duDE, please disable the option "Enable property Evaluation and other implicit function calls" under Tools->Options->Debugging->General.
It seems that checking this option:
Tools -> Options -> Debugging -> General: "Use Managed Compatibility Mode".
avoids Visual Studio 2015 from crashing but disables Edit and Continue... which is no good.
So, I am still looking for a better answer.
Sources:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/8653d0d1-c7ed-4194-8fdc-f183d4ff4ec2/problems-with-debugging-in-vs-2015-when-execution-is-in-a-thread?forum=vsdebug
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/f3e0c708-0cb4-4e15-9f80-8e713870ebcd/debugging-cant-hover-over-variables-to-see-their-values?forum=visualstudiogeneral
Datatips (mouse hover over variables in debug mode) not working in Visual Studio 2012 / Win 7 64bit
Visual Studio 2015 Debugging: Can't expand local variables?
https://blogs.msdn.microsoft.com/visualstudioalm/2013/10/16/switching-to-managed-compatibility-mode-in-visual-studio-2013/
Quoting the last one:
In Visual Studio 2012, we introduced a new managed debug engine that provides us the ability to more rapidly add new features compared to the older implementation. This can be seen by the number of features introduced in Visual Studio 2013 after only a single year including Managed Return Values, .NET 64-bit Edit and Continue, Async Callstacks Enhancements, and Improved Tasks Window to name a few. Unfortunately, there are still a couple scenarios that are not supported yet with the new debug engine, so in these cases you will have to switch back to the legacy engine.
...so it seems that this is not new.
This issue should be fixed in Visual Studio "15" Preview 5 (available here. For Visual Studio 2015 Update 3 there are, unfortunately, no known workarounds other than those already mentioned.
I installed Productivity Power Tools for Visual Studio 2012 and I guess one feature is either missing or turned off. I mean the tooltip that appears when howering on the classname and method name.
Here are the screens of what I mean. This is from VS 2010.
How can I turn on the same feature in the Visual Studio 2012 or is it just removed from this version of IDE?
The Solution Navigator has been incorporated into Visual Studio 2012 and is no longer part of the Productivity Power Tools extension. There also doesn't seem to be any way to enable interactive tooltips.
i've created binding for Visual Studio's Edit.BriefBookmarkDropx commands:
Edit.BriefBookmarkDrop1: Ctrl+Shift+1
Edit.BriefBookmarkDrop2: Ctrl+Shift+2
Edit.BriefBookmarkDrop3: Ctrl+Shift+3
...
Edit.BriefBookmarkDrop9: Ctrl+Shift+9
Using Tools -> Options -> Keyboard:
Except that when i hit Ctrl+Shift+2, nothing happens:
i know Microsoft likes to obfuscate Visual Studio features. What's the secret trick that i'm missing?
Note: i am installed DPack into Visual Studio Professional - an addon that provides brief bookmarks (and a number of other essential features). Do not confuse this for an answer to my question:
you cannot install addons into Visual Studio Express
you cannot install addons into the Visual Studio Shell
my question isn't about addons
Bonus Reading
MSDN: How to: Use Bookmarks with Brief Emulation (Visual Studio 2008)
Numbered Bookmarks addon for Visual Studio 2005
DPak Numbered Bookmarks
It took four years, but i figured it out. Everything i was doing was correct. The only issue is that Visual Studio is stupid. Here's how to configure Visual Studio to drop a Brief bookmark:
How's that different from what i showed in the question?
Fails Use new shortcut in: Global
Works Use new shortcut in: Text Editor
By default any keys you bind in the Global space do nothing.
Which begs the question why the option is there, and the default? But usability is not something Visual Studio team prides itself on.
In Visual Studio 2010 you can drag tabs out to separate windows but you can not collect them together as additional tabbed elements. Is there a VS 2010 add-on to allow you to group your extra windows into tabs? It would be really nice to have a set of tabs on each of my monitors.
The best place to look is the Visual Studio Gallery for 2010 Extensions. If you are lucky someone else has already had the idea and created an extension (VSIX) for you.
Otherwise, why do you have a go at writing it yourself by grabbing a copy of the Visual Studio 2010 SDK and read the Getting Started Guide.
UPDATE: I just stumbled on this awesome Visual Studio Extension that may do want you are looking for: Visual Studio 2010 Pro Power Tools.
http://visualstudiogallery.msdn.microsoft.com/d0d33361-18e2-46c0-8ff2-4adea1e34fef
Productivity Power Tools does it, and it's free. The feature is called Document Well.