Questions tagged [visual-studio-debugging]

Questions related to debugging methods and tricks in VisualStudio

2287 questions
0
votes
2 answers

C# best way to debug a worker crew

One of my applications is heavily using the worker crew model. Several threads are created that do essentially the same thing to different pieces of data. What is the best way to debug this? Is there a way in Visual Studio to have a breakpoint based…
weismat
  • 7,195
  • 3
  • 43
  • 58
0
votes
1 answer

Debug Multiple ASP.Net Projects in VisualStudio2010

I have a solution file with two applications loaded. Both are MVC enabled apps, one is a data API the other is a service that consumes the API. I dont have a server to house this application on yet and would like to debug them both in Visual Studio…
0
votes
1 answer

VS2010 for debugging com interop memory leaks

I know there have been some major improvements in Visual studio 2010 for debugging things like memory leaks from dump file etc. I wonder if it has any improvements specifically debugging memory leak for COM interop scenarios?
0
votes
2 answers

How to reliably catch "breakpoints" for multi-threaded application in Visual Studio? (C++, VS2008)

I have a multi-threaded application that I'm debugging inside the IDE (Visual Studio 2008, Win7-64, C++). For "debugging" purposes, I "pretend" that I always have a single processor (the program detects the number of local processors), but the…
0
votes
0 answers

I can not use launch.json to debug python files in vscode, but in almost two weeks ago,it is ok

enter image description here Now, when i use the launch.json to debug, it comes out "Time out waiting for launcher to connect" I have tried to delete old launch.json file and create a new file, but it is not work!
ElsaWu
  • 1
0
votes
1 answer

Conditional breakpoint strange affects to the code running

I have two loops, one is nested. And this code just shifting data chunks in memory. When I set a breakpoint to catch when there are incorrect addresses, it almost stopes the loop and it starts running very slow(> 1 min). I tried to store addresses…
Fun
  • 43
  • 3
0
votes
1 answer

How to stop Visual Studio from locating .NET *.cs files during debugging?

I am trying to debug third party code using dotPeek as a symbol server. The debugger stops at breakpoints in that code. However, the debugger is also trying to locate .cs files that belong to the .NET framework as shown below and I have to cancel…
Tony_Henrich
  • 42,411
  • 75
  • 239
  • 374
0
votes
1 answer

Debugging and start without debugging options are not visible in Visual Studio

I have created a C# file with the following steps: File -> New -> New File -> C# class But at the time of compilation I noticed that debugging and start without debugging options are not visible. I have tried the compilation on command line. It is…
0
votes
0 answers

How to debug a Python module and python code in Visual Studio Code's launch.json

My question may seem simple but, I have a module that I launch in a terminal like this: python -m torch.distributed.launch --nproc_per_node=4 --master_port=29300 train.py …
0
votes
1 answer

Debugger for Python C++ combo for Visual Studio Code

In Visual Studio Code, is there a debugger that works with both Python and C++ codes where the former calls the latter? I have been using the "Python C++ Debugger" until it stopped working about a week ago after an VS Code update. Are there…
Hans
  • 1,269
  • 3
  • 19
  • 38
0
votes
2 answers

How to compare two pdb files and validate if the source code matches?

I want to validate if there is source code difference occurred between two builds with help of .pdb files generated from Build1 and Build2. Little Background : I am using Visual Studio 2019 and My solution has a mix of .NET Framework, .NET Core…
PoomaniGP
  • 80
  • 1
  • 1
  • 11
0
votes
0 answers

Where does VSIDE store/cache extra source file search folders told by user?

I find such a weird problem. A screenshot shows this. Using Visual Studio 2019 v16.11, when debugging, I see a function named _except_handler3 on the callstack. I double click the _except_handler3 item, VSIDE pops up "Find Source" dialog asking…
Jimm Chen
  • 3,411
  • 3
  • 35
  • 59
0
votes
0 answers

VS Code keeps freezing "The window is not responding" + turns main interface gray

I'm doing extra EDA on a Jupyter Notebook after I built out a model because the models eval metrics aren't great. I created a new file within the same folder that way I could work on the same venv and stay in the same directory. The model file works…
0
votes
1 answer

Put a breakpoint on each new thread in Visual Studio (debug mode)

I am trying to put a breakpoint each time a new thread is opened by an application for which I do not have the source code I was able to put kernel32!CreateThread in the breakpoint conditions, it gives me a breakpoint when certain threads are…
vnkx3
  • 21
  • 4
0
votes
1 answer

guard_dispatch.asm not found

I have activated the Control Flow Guard option (/guard:cf) to compile C++ programs in debug mode with Visual Studio 2017. When I step inside a function with the debugger, Visual Studio shows the following page: This is quite anoying. I would like…
Daniel Laügt
  • 1,097
  • 1
  • 12
  • 17