Visual studio way to label watching value - visual-studio

I am curious is there any way to label value of object in watch window - to help in readability? (Like in the picture)
It will be really helpful to debug.
I tried double click on name and changed it, but it looks like we cannot change it.
How would I like to use it
Thanks a lot!

The feature you want to use is the datatips in debugging.
https://msdn.microsoft.com/en-us/library/ea46xwzd.aspx
We hover over a variable to see its value, and it was different from the debugging watch window.
The feature you want to get in the watch window would be hard now.
This document shared us the general features in the debugging watch window:
https://abhijitjana.net/2010/10/26/10-tips-you-should-know-about-watch-window-while-debugging-in-visual-studio/
If you really want to get this request, one idea is that you could submit a feature request to the product team:
http://visualstudio.uservoice.com/forums/121579-visual-studio.

Related

Can i print the information of the locals window in my application visual studio?

I am wondering, if there is any way that let us print all the variables and their values that are displayed on locals window.
To be clearer ,I do want to create a application that works same as locals window in the visual studio during a process execution. Can I know how it could be acheived? Thankyou in advance.
Not found the possible solution for it. If you just want to get the variable value, one workaround is that you could use the immediate window instead of local window. Or you could customer Debugging watch window to output the view lists you want to get with native extension.
Output a watched Visual Studio variable to a file
But not found the way to achieve it using the local windows.
I help you submit a feature request to the product team here:
https://visualstudio.uservoice.com/forums/121579-visual-studio-ide/suggestions/30957622-can-i-print-the-information-of-the-locals-window-i
If possible, you could also vote and add your comment there.

how to change how the window looks in visual basic

So basically what I am trying to do is in Visual Studio I am trying to change how the VBS window will look instead of the way that it is now because I have seen it done before where people make the window look cool without having the bar or anything. Thanks hopefully I explained it correctly please let me know if you need further infomation.
thanks
A window without a title bar doesn't really look cool. And even if it did, it would suddenly stop looking cool the instant that the user tried to move it someplace else on their screen. So I don't recommend doing this.
But if you want to do it anyway, investigate the FormBorderStyle property of your form. You'll see it in the Properties Window at design time. You can pick any of the available options, but if what you're aiming at is an window with no borders, you'll want to select FormBorderStyle.None.

Firefox Web Developer Tools - how to see the code associated with a button

I'm not really sure how to best word this, but let's say I'm on a web page and when I click a certain button, something undesirable happens. Like a whole bunch of content disappears. Is there a way in the Firefox debugging tools where I can insert a watch on that button so when I click it, the debugger will pause the JS execution and show me exactly where in the code it's executing the stuff I don't want?
(note: obviously this is code I did not write, otherwise I'd know where to look to fix the problem)
Yes, in the debugger there is an events pane, and you can break when a specific event is triggered. The documentation is here:
https://developer.mozilla.org/en-US/docs/Tools/Debugger#events-pane
Firefox has a good built-in profiler - you can click the start profile, and click it again to end, and see what parts of the code are running the most.
This is really helpful in finding performance problems too.

Fields in the XAML editor Property window becoming un-responsive

Edit: I see "Silverlight -" is in front of my question, which I realize may have something to do with the alphabetical order of my tabs... really Visual Studio 2013 should be in front, anyone know if that can be changed?
I've been using the newer Visual Studio 2013 for about a week now, and I've found some quirks with it. The one that seems to happen the most is when I'm in the XAML editor working on something, suddenly if I go over to the property window I can't enter anything. I'm not running/debugging. I can type stuff in the regular XAML code editor window.
Even stranger, one of the times, I could get the cursors to appear in the fields. I typed a bunch of junk and just one character from what I types appeared. Another time I couldn't enter values into the properties, but I could double click on an event in the events window and create a new event handler. Just a minute ago I had the opposite, where I couldn't double click in the events window.
I think VS 2013 introduced async handling of more things, could it be related to that? Or perhaps because I'm using Silverlight? Right now my only workaround is to restart VS, does anyone have any knowledge about this? Anyone else experienced this?
I'm going to submit a bug report, but it would be a while before there's a patch, so I'm wondering if maybe someone understand the problem better and has a workaround? Or maybe just confirm that this exists and that I'm not crazy/my computer's haunted.
Edit:
I should mention another weird thing that happened two nights ago. I thought it was some how my doing, but I never figured out how I could have managed it without noticing. I was working on a piece of code, went to run after changing a few lines, and suddenly I had a ton of compiler errors. I go over to a user control I haven't touched in hours and suddenly the main LayoutRoot grid is completely empty. Luckily I'd committed to source control, but still...
I found an easy way to deal with this problem. It happens a lot after debugging so what I did was I created a batch file on my desktop containing this line taskkill /f /im XDesProc.exe and I run it every time the properties start misbehaving. Its the quickest way to reload the designer's functionality. I submitted this bug to microsoft they claim it will be included in the next update.
Me and another guy are developing a silverlight app and having the same exact problem. I accidentally found where the bug lies and how to mess with it to allow you to type "very briefly". Apparently this has something to do with tooltips. If you hover over anything in the property window when this bug is happening and allow a tooltip to popup while your cursor is blinking in a field, for the duration that the tooltip is up you can resume typing normal. As soon as the tooltip times out and disappears you can't type. So the only way you can edit or search properties is while a mouse tooltip is floating active. Very unusual. Can't seem to find any kind of tooltip settings in the program and the situation is very hard to find on google because search results assume your talking about programming tooltips. As far as I know we have had this issue since before release candidate. We are currently on official update 1 with the same problem persisting.

Visual Studio 2010 Debugging problem Tool tip code inspector

When debugging in VS I step through the code but the when I move my mouse over variables and properties it shows nothing.
For example:
If I hover my mouse over StoreId it should display the value. It doesn't though, however, if I I hover my mouse over myStore it displays the above?
It's like it cant map the properties to the object in run time.
Any ideas what's going wrong?
Thanks
Check that you haven't enabled any optimizations in the build options.
Optimizations can lead to whole variables being removed from compiled code, instructions being executed in a different order than initially expected...
This problem was addressed in the SP1 release of VS2O10, did you install it?

Resources