Questions related to debugging methods and tricks in VisualStudio
Questions tagged [visual-studio-debugging]
2287 questions
0
votes
1 answer
Can I debug dotnet dll in Unity using Visual Studio with source project?
I have access to dotnet project and dll that is built from it. The dll is placed in Unity Assets and the scripts inside it is used in components. Is there a way to debug these scripts?

XaLVa
- 27
- 3
0
votes
1 answer
Delay the Visual Studio 2022 error message "failed to launch debug adapter"
I am trying to debug my ASP.NET app in a pseudo production environment, i.e. with launchSettings.json profile setting:
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Production"
}
I'd like to debug the app behaviour after my database…

camcam
- 2,585
- 8
- 49
- 65
0
votes
0 answers
error with Install OpenCV C++ and Set It Up in Visual Studio Code with CMake
I intend to work with OpenCV C++ code with VScode in Windows 11
my VSCode compiler and make tools properly installed and work
I use the following CMake file to debug my simple code, however, it can not detect the header library even manually set the…

mehrdad
- 11
- 3
0
votes
1 answer
Visual Studio 2019 - Debug Interface Access COM component returns 0x80040154 Class not registered error
My company developed a small tool to read some logs containing a call stack when an error occurs in our apps, and to find which part of our code caused the issue. This tool uses the Visual Studio 2019 Debug Interface Access (DIA2) component to…

Jean-Milost Reymond
- 1,833
- 1
- 15
- 36
0
votes
0 answers
How to debug message queue listener in Visual Studio
We have couple of BackgroundService classes listening to message queues. I'm trying to debug a helper function that gets called when an event is read from the queue. Breakpoint is set to the entry point of the function.
Problem:
While I'm debugging,…

joym8
- 4,014
- 3
- 50
- 93
0
votes
0 answers
Error message when trying to debug C code on VSCODE
When trying to debug code, I get the error message "Unable to start debugging. Unexpected GDB output from command "-environment-cd c:\uses\...(path)". No such file or directory.
I'm using the last version of both GCC and GDB. Genuinely have no idea…

gununes132
- 1
- 2
0
votes
1 answer
Unable to attach to the process VS2019 / Win10
Error Message
Unable to attach to the process. Visual Studio has insufficient privileges to debug this process. To debug this process, Visual Studio must be run as an administrator.
Explanation
I use Visual Studio 2019 on a Windows 10 maschine
and…

Ramona Frick
- 21
- 5
0
votes
0 answers
Debugging is slow in VSCode
I've recently changed laptops to a faster model, yet debugging takes substansially more time now. Both reaching the first breakpoint, and continuing (step over/step into etc.). I've tested them side by side, and where the older laptop will continue…

Ben F
- 1
- 2
0
votes
0 answers
Geckodriver opening up only starting the application for the second time
I built a .NET WPF application which uses geckodriver. I installed geckodriver as a nuget package. On building the application on Release I got the bin>Release folder. I copy pasted that folder onto another PC and ran my application. Everytime I run…

joekevinrayan96
- 564
- 10
- 25
0
votes
0 answers
Can't start debugging node
This is my first time use debugger on Visual Studio Code. I am working on a asp.net-react webapi. I was easily able to use debugger for .net Core. Here is my launch.json:
{
"version": "0.2.0",
"configurations": [
{
…

Altrit
- 11
- 3
0
votes
1 answer
IEnumerable Visualizer not available using Docker Tools with ASP.NET Core
The IEnumerable Visualizer magnifying glass isn't available when you debug an ASP.NET Core WebAPI project using Docker Tools.
It is availble when you run the project without Docker Tools.
Steps to reproduce:
Open Visual Studio and Create New…

samneric
- 3,038
- 2
- 28
- 31
0
votes
1 answer
ERROR SonarQube Re-run SonarScanner using the -X switch to enable full debug logging
Hi i have my project in VSC and when i try to run in the terminal the command line:
sonar-scanner.bat -D"sonar.projectKey=***" -D"sonar.sources=." -D"sonar.host.url=***" -D"sonar.login=***"
to analyse my code VSC terminal displays this…

Anaïs Diaz
- 13
- 5
0
votes
1 answer
Use common macros (eg. $OutDir) in Visual Studio 2022 as part of the Debug run Config
i'm pretty convinced that i've done that in older Versions of VS. But as sometimes mind tricks you, it could be possible that it is not possible at all:
I have a classLib (plugin) written in C# using Microsoft Visual Studio Professional 2022…

Netzmensch
- 111
- 1
- 7
0
votes
1 answer
How to I solve a Visual Studio Fatal Error during debugging involving Desktop CLR, CoreCLR and recommending Managed Debugger
I'm afraid the error is so baffling to me I didn't even know how to word the question! I'm writing a plugin that's a class library for a Third Party Application (call it 'ApplicationX'). I had this successfully set up in a debug environment where it…

stigzler
- 793
- 2
- 12
- 29
0
votes
1 answer
Integrated Terminal and Debugger produce different results
Objective: Print the name/s with the highest votes
So I was debugging my PSET3 Plurality for probably 8+ hours now. I thought everything was fixed since the result in the debugger was what I intended, but, in my integrated terminal, it produced the…

Onelad
- 3
- 3