Questions tagged [visual-studio-debugging]

Questions related to debugging methods and tricks in VisualStudio

2287 questions
14
votes
4 answers

First time exception - System.pdb not loaded

I use VS2017 and I get the following when I hit F5 It happens for certain projects only, even if I disabled the Symbols support under VS options. Although in the past, for the same projects it used not to throw even with Symbol support enabled.…
Apostolis Bekiaris
  • 2,145
  • 2
  • 18
  • 21
14
votes
5 answers

VS2010 (Express) debugger trapping Ctrl+C in Console app

Summary of Answers To avoid the debugger trapping Ctrl+C first turn off the Visual Studio Hosting Process (found in project properties, Debug tab) If you're using the Express version of Visual Studio, that's all you can do. If you're using the…
14
votes
1 answer

Visual Studio 2015 JavaScript debugging doesn't catch unhandled exceptions when 'Just my code' is enabled

Since the entire team has upgraded to Visual Studio 2015, the debugger no longer breaks on unhandled exceptions in JavaScript. However 1 of the 4 machines works fine and we're guessing this is because it's on IE10 and the rest of us are on IE11.…
djdd87
  • 67,346
  • 27
  • 156
  • 195
14
votes
1 answer

NaoQi and Leap problems: An unhandled exception of type 'System.BadImageFormatException' ... and Could not load file or assembly

At the moment, I am running into a problem that I have not been able to solve with solutions on Google. Nothing has worked so far. When I compile Leap Motion code and import the Naoqi C# library, it works fine. When I actually try to connect to the…
user748176
14
votes
3 answers

What is the point of `static char THIS_FILE[] = __FILE__;`?

What is the point of static char THIS_FILE[] = __FILE__;? Intro: What does it do? Where does it come from? MFC, Microsofts native class library for Windows, has a DEBUG_NEW macro that tracks memory allocations and the place they happened (in the…
14
votes
3 answers

How to debug Visual Studio 2012 instance design-time

I'm developing a WPF MarkupExtension and encountered errors during design time. With the previous version of Visual Studio 2010 it was possible to start a second instance of Visual Studio 2010 and attach to the process of the already-running…
14
votes
4 answers

How to debug SQL Server T-SQL in Visual Studio 2012

How does one debug a T-SQL stored procedure in a multi-tier application in Visual Studio 2012? To be clear, I want to set a breakpoint in a sproc in VS 2012, and hit it when the sproc is called from an ASP.NET WebForms app in the same debugging…
nekno
  • 19,177
  • 5
  • 42
  • 47
13
votes
2 answers

How to stop timer while debugging

So I setup a System.Timers.Timer and have a handler for the Elapsed event. It works as expected. However, if I want to debug the code that is called within the elapsed handler; the timer will continue generating additional events. Thus, I can't…
Dunk
  • 1,704
  • 1
  • 14
  • 19
13
votes
5 answers

Breakpoints not getting hit while debugging in VS10

I am working on a C# and Silverlight project and every once in a while I run into an issue where my breakpoints are no longer getting hit when I debug. In the editor they are not turning transparent so I know the correct code is loaded and being…
J Lundberg
  • 2,313
  • 2
  • 20
  • 23
13
votes
1 answer

Setting the "Title" value displayed in Visual Studio's "Attach to Process" dialog?

When you choose Debug / Attach to Process in Visual Studio, the dialog displayed has a "Title" column. By default this shows the caption of the main window belonging to the process. For example, it might display "It was a dark and stormy night -…
13
votes
4 answers

Unable to set the next statement. The next statement cannot be changed at this time

I suddenly started experiencing this error in Visual Studio 2015 and 2017, when trying to move the yellow cursor (next statement) in debugmode. The code I want to move over is nothing special (i.e does not include any try-catch and/or exception…
13
votes
6 answers

How to debug Cucumber in Visual Studio Code (VSCode)?

I was trying to debug Cucumber scenarios in Visual Studio code and made below changes in the launch.json. { "name": "e2e", "type": "node", "request": "launch", "program":…
13
votes
4 answers

Does IIS Express support Debugging Classic ASP?

I recently installed Visual Studio 2010 SP1 BETA, ASP.NET MVC 3 RC2 and IIS Express. I successfully got an MVC 3 project running along with classic ASP pages in the project with IIS Express. I was wondering if there is a way to set up Classic ASP…
13
votes
3 answers

Visual Studio : Hotkey/way to step into f() in statement a()->f(b(),c(),d()) directly

While debugging, I am currently at this (next) statement :- system()->executeFracture(calculateFracture(data)); ^^1 ^^2 How to step into executeFracture() or calculateFracture() directly and easily…
javaLover
  • 6,347
  • 2
  • 22
  • 67
13
votes
7 answers

Visual Studio 2015 Debug doesn't work in multithread application

In my project I have a heavy part of code that should be executed on a separate thread without blocking UI. When debugger hits the breakpoint inside this code, VS2015 freezes for 5-10 seconds. After that, if I try to continue debug (by pressing Step…