Questions tagged [visual-studio-debugging]

Questions related to debugging methods and tricks in VisualStudio

2287 questions
28
votes
2 answers

What is the meaning of the square/diamond breakpoint in Visual Studio?

I placed 2 breakpoints and one of them turned square. What does it mean? If it helps I am remotely debugging some code.
28
votes
11 answers

visual studio edit and continue does not work

In my project which is a hybrid project (in previous it was a web forms project that then we modified to use mvc pattern). Now I want that in debug mode, I want to change something in my cs file, and then I want the changed code to run. I've tried…
brtb
  • 2,201
  • 6
  • 34
  • 53
27
votes
2 answers

Is it possible to watch the value of a memory location using the Visual Studio Debugger's Watch window?

Yes, I know there are four Memory windows, but I much prefer the display of a single value in the watch window, and I'm wondering if it's possible to specify a memory location to watch in the watch window. Putting the address by itself just…
26
votes
5 answers

Enable Live Graph in Memory Usage while Debugging in Visual Studio

Somehow I have lost the live graph from my Visual Studio Diagnostic Tool. Below is my current debugging screen showing that I can not see Memory and CPU usage live graph : Where as I am looking for this : I tried exploring in following places as…
26
votes
4 answers

How to filter output in Visual Studio 2012+?

I am having problem inspecting specific things in my Debug.WriteLn output in Visual Studio 2015. (Same thing in 2012 and 2013 version too.) XCode and Eclipse both include a filter-box on top of the Output window. I tried to find a similar extension…
frankish
  • 6,738
  • 9
  • 49
  • 100
25
votes
8 answers

Debugger popup message "Getting DataTip text"

This Debugger message pops up randomly while i am attempting to examine a variable while a breakpoint has hit in Visual Studio 2017. Shortly thereafter, a larger message box appears that shows the following: "Evaluating the function…
Aave
  • 548
  • 1
  • 5
  • 15
25
votes
1 answer

Quick way to toggle 'break on all exceptions' in VS2012?

I regularly find it very useful when debugging to switch on the Common Language Runtime Exceptions: Thrown option in Visual Studio's Debug > Exceptions screen. I'd like a quick way of doing this, since it's always the same checkbox I'm toggling and…
24
votes
14 answers

Why does F10 (step over) in Visual Studio 2010 not work?

I also tried 2 solution. But It doesn't worked. Go to Tools > Options menu in Visual Studio. Go to Debugging > General menu item in left pane. In right view you will see and option Step over properties and operators (Managed only). Uncheck this…
maycil
  • 754
  • 2
  • 8
  • 24
24
votes
2 answers

Enable breakpoint B if breakpoint A has been hit

I'm often find myself setting a breakpoint A somewhere in the code and manually enabling one or more breakpoints when this breakpoint is hit. A typical case is when I'm debugging an unittest and don't care about the preceding tests. void…
larsmoa
  • 12,604
  • 8
  • 62
  • 85
24
votes
1 answer

Console.WriteLine does not output to Output Window in VS 2017

In short: Console.WriteLine was working ok in VS 2015 but it is not working anymore in VS 2017. In detail: I have some VB code using Console.Write that outputs ok to Output Window in VS 2015, even when configured as Release ( to contrast with Debug…
MarcioAB
  • 601
  • 1
  • 5
  • 11
23
votes
5 answers

Lazy: "The function evaluation requires all threads to run"

I have a static class with some static properties. I initialized all of them in a static constructor, but then realized that it is wasteful and I should lazy-load each property when needed. So I switched to using the System.Lazy type to do all…
23
votes
3 answers

getting the debugger to break at the next click event

in a .net windows forms project which has 100s of forms, and all those forms has countless custom made controls with base classes involved, its very difficult for me to know where a particular button is, i mean whats the form name which I'm looking…
user734028
  • 1,021
  • 1
  • 9
  • 21
23
votes
5 answers

Skip STL Code when debugging C++ Code in Visual Studio 2012?

Is it possible to skip STL Code when using the C++ debugger (native, x64) in Visual Studio 2012? Quite often when debugging C++ code I step into STL code. I expect that the STL code provided by Microsoft is correct - I am not interested in debugging…
Vertexwahn
  • 7,709
  • 6
  • 64
  • 90
23
votes
3 answers

debugging with visual studio using redirected standard input

I am debugging c++ console application with Visual studio. I exhausted of inserting the same input every time I debug this program. I would like to use the same input more times. I do this without debugging in command line with command: Program.exe…
22
votes
3 answers

"You don't have an extension for debugging 'JSON with Comments'" warning when debugging VS Code theme

I generated the files necessary for creating a color theme in VS Code. I did this with the generator-code node package. My file structure is as follows When I run VS Code's debugger, I get this warning that prevents the debugger from running. Here…
Ksoup
  • 223
  • 1
  • 2
  • 6