Questions tagged [visual-studio-debugging]

Questions related to debugging methods and tricks in VisualStudio

2287 questions
16
votes
2 answers

What would be an example usage of DebuggerStepperBoundaryAttribute?

I'm familiar with the DebuggerHiddenAttribute and the DebuggerStepThroughAttribute. Today I noticed the DebuggerStepperBoundaryAttribute, and if I understand it correctly, if you attempt to F10 over a property (or method or whatever) that has that…
Daryl
  • 18,592
  • 9
  • 78
  • 145
16
votes
10 answers

Visual Studio 2012 crashes every time I try to debug with error CLR20r3

Every time I try to debug one of my apps I get the below error message. Anyone have any ideas? I tried running Visual Studio in safe mode but I get the same thing. I also tried to repair the install and completely reinstall it with no luck :(. …
16
votes
1 answer

The signer's certificate is not valid for signing

While debugging in Visual Studio I am getting this error The signer's certificate is not valid for signing, An error occured while attempting to sign:sharepoint_link.dll,The command ""C:\Program Files (x86)\Microsoft …
Joy Rana
  • 161
  • 1
  • 1
  • 4
15
votes
8 answers

Unable to debug VSIX project

I'm trying to develop my first visual studio extensions project, I have VS10 SDK installed and was able to create a new project and can build it fine, however when I attempt to debug symbols are not loaded. I know that I can debug to VSIX project…
Rubans
  • 4,188
  • 6
  • 40
  • 58
15
votes
6 answers

Javascript breakpoint not work in Visual Studio 2019 asp.net application

I recently upgraded from VS 2017 to VS 2019. In VS 2017, when running an asp.net application locally, using Chrome, I could put a breakpoint in javascript code and the debugger would stop on the breakpoint. This no longer works in Visual Studio…
15
votes
3 answers

variable values not showing during debug vs 2019 16.2.4

I have a break point set after I have assigned a value to a local variable. The name of the variable remains grayed out, and I can't see its value when I hover over it. This was working find but has suddenly stopped. As shown in the code below, I…
cwmartz
  • 193
  • 1
  • 1
  • 9
15
votes
2 answers

Visual Studio 2017 Debugging - Disable Browser Cache

I use Visual Studio 2017 for web development pretty heavily, and when you let it open a browser (Chrome is my preference, though this would apply to Edge) it often loads cached versions of scripts and CSS. I know I can go to the Network tab and…
15
votes
4 answers

Asp.Net Core: Debug -Attach to process is not working

The way we are used to debug a running "IISExpress" process in .Net Framework is by attaching a process by the name "iisexpress.exe" in Visual Studio. But attaching the iisexpress process is not working in .Net core. It shows the message - "The…
tech-y
  • 1,829
  • 2
  • 16
  • 26
15
votes
5 answers

VS code is ignoring the breakpoint in c++ debugging

I am debugging a c++ code in VS Code but it doesn't stop on breakpoint and visualize the variables, watch and call stack, which it was supposed to do. Instead of this, it prints this in debug console: Breakpoint 1, 0x000000000040074a in main…
Hashir Sarwar
  • 1,115
  • 2
  • 14
  • 28
15
votes
2 answers

Profiling inlined C++ functions with Visual Studio Compiler

How can I make sense of C++ profiling data on Windows, when a lot of code gets inlined by the compiler? I.e. I of course want to measure the code that actually gets run, so by definition I'm going to measure an optimized build of the code. But it…
milianw
  • 5,164
  • 2
  • 37
  • 41
15
votes
6 answers

Debugging not hit breakpoints in .NET CORE MVC 6 application

I am working on .NET CORE 1.0 MVC 6 application and I stuck with the debugging point as it stopping hitting yesterday. with number of try I delete project and start again. First time it load symbols even due I have uncheck in Tool --> Debugging -->…
K.Z
  • 5,201
  • 25
  • 104
  • 240
15
votes
5 answers

Need to debug my Web API service that's requested from a client machine - need help, how do I do this?

I built a Web API service that's hosted locally on my machine in IIS. I have an iOS app that I'm running via XCode that makes the call to the web service. The connectivity is there, and works. The iOS app successfully makes the connection to my…
Mike Marks
  • 10,017
  • 17
  • 69
  • 128
15
votes
1 answer

How do I rearrange (or sort) variables in the VS2010 Watch window?

I would like to rearrange variables I've entered into the Watch window, but drag/drop doesn't work, there's no sort on the name column that I can find. Short of deleting and retyping, is there any way to rearrange variables you're watching?
Llaves
  • 683
  • 7
  • 20
14
votes
3 answers

How to debug asp.net mvc 4 source code?

I download the latest source code from here: http://aspnetwebstack.codeplex.com/SourceControl/list/changesets 1) add the system.web.mvc project to my Solution including other projects that system.web.mvc project depends on. 2) change the reference…
14
votes
6 answers

VS 2017 immediate window shows "Internal error in the C# compiler"

I use Visual Studio 2017 (15.6.6). When debugging, I try to evaluate simple expressions like int a = 2; in the immediate window. An error Internal error in the C# compiler is thrown. I tried to enable Use Managed Compatibility Mode as hinted at in…