Questions tagged [watch-window]

This tag refers to the watch window(s) of MS Visual Studio that is used to view variables during debugging.

32 questions
1
vote
1 answer

Extension methods not working in Visual Studio (Immediate/Watch windows)

When I try to use an extension method in the Immediate or Watch windows, I get the following error: {method} is not a member of {class} I'm using Visual Studio Community 2013 Update 4, but the issue exists on multiple PCs here, running varying…
meni
  • 53
  • 1
  • 5
1
vote
0 answers

Watch windows not updating correctly when debugging C++/CLI 2D arrays

I'm debugging a C++/CLI assembly. In the assembly, I have a 2D managed array declared like this: array ^classifications; I have four variables I'm using to access positions in the array: int x, y, dx, dy; In the Watch window, this…
Eric
  • 6,364
  • 1
  • 32
  • 49
0
votes
0 answers

How to display a dynamically allocated array in the ARM KEIL 5.36 debugger?

I can easily show static arrays in watch window, but for dynamic arrays KEIL shows only value at the pointer. Is there any way to specify watch window command for that or maybe cast dynamic array pointer to the static array pointer I've already…
lazba
  • 129
  • 9
0
votes
1 answer

Why can I only view a list in the watch window, when stopped on a breakpoint accessing that list?

I'm having a problem this evening, where I don't understand why I cannot add a list to the watch window. The problem is occurring with the following minimum reproducible example. using System; using System.Collections.Generic; using…
jwilo
  • 152
  • 1
  • 9
0
votes
1 answer

Copy pointer address for conditional breakpoint from Visual Studio watch window?

Is there a quicker way to copypaste C++ pointers from Visual Studio's Watch window into a conditional breakpoint? Context: My pointer values change each time I restart my application, so I need to update the address in my conditional breakpoint. If…
idbrii
  • 10,975
  • 5
  • 66
  • 107
0
votes
1 answer

How can i display a C-style array in visual studio watch without showing its address

I'm looking for a easy way to display a C-style-array in the visual studio watch window without showing its address. Unfortunately, the format specifier na does only cover pointers. F.e. see this array definition int a[] = { 1,2 };
jesses
  • 559
  • 3
  • 15
0
votes
1 answer

How to determine the type of a C++ object from an address at run-time?

I would like to determine the type of an object from a memory address, such that I can apply the correct cast in the VS Watch window and view the object. I am attempting to debug in the disassembly view, as my own code is loaded as a DLL into an…
billw
  • 120
  • 1
  • 9
0
votes
2 answers

How Can Watch Variables be Configured in a Watch Window Before Running a Debug Session in VS2017?

In all of my searching, I have not come across any trick, plug-in, or setting that would allow me to pre-populate a Watch Window for use during debugging. The well-known steps to watch a variable in Visual Studio 2017 is to set a breakpoint…
0
votes
0 answers

Invalid expression term '.' null-conditional, watch window and immediate window not working

I've got the exact same problem as here VS2015 watch window does not accept the null-conditional syntax I'm running VS 2017, .net 4.7.2 and I selected C# 7.3 I have updated Microsoft.CodeDom.Providers.DotNetCompiterPlatform to 2.0.1 and…
0
votes
1 answer

Visual Studio 2015 looking at arrays in the watch window

Say, I have an array of large objects I'm looking at. The object class being: Class Box Public length As Double Public breadth As Double Public height As Double ... ... Public blah as blah End Class Normally I use the watch window and…
0
votes
1 answer

Visual studio way to label watching value

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…
patryk w
  • 3
  • 2
0
votes
1 answer

Missing table elements in watch window of zerobrane studio

I am new to using zerobrane studio. In the watch window the table elements "expression" and "value" are missing. Only a blank window is shown. How to add the two heading columns: "expression" and "value" in the watch window of zerobrane studio so as…
0
votes
0 answers

Reading multi-properties by expression in Watch Window and having handled results for properties that have Debugger.NotifyOfCrossThreadDependency()

I have problem that watch expression is immediately interrupted when it comes to property that may use other thread. I don't want to have message "The function evaluation requires all threads to run", but still, I would like to use debugger feature…
0
votes
3 answers

Visual Studio Watch Window Debugger Displaying Nothing

I was working on my application today, and literally all of a sudden, my debugger just stopped working. I'm working in Visual Studio 2013. Normally when I debug, I set the breakpoint, and hit f11 to step into, and watch the updated results in what I…
Stinkidog
  • 425
  • 2
  • 7
  • 19
0
votes
1 answer

Can I prevent StackOverflowException from crashing my debuggee in Visual Studio?

I'm debugging a 3rd party library that is littered with properties that occasionally throw StackOverFlowException. Whenever I look at objects from this library in the Watch window, I end up getting the error message "Function evaluation was…
Omer Raviv
  • 11,409
  • 5
  • 43
  • 82