222 questions with Visual Studio Debugging tags

Sort by: Updated
9 answers One of the answers was accepted by the question author.

VS Code Debugger not working for python

I am experiencing debugging issue for my VS Code in WIN-10. It happened since weekend when I did OS restart . It was working fine before and I had launch.json configured too. Debugging was working fine. Any troubleshooting tips. It seems when I do…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,804 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
961 questions
asked 2022-02-07T07:03:40.79+00:00
GHANASHYAM SATPATHY 306 Reputation points
commented 2024-06-25T20:55:17.79+00:00
Santiago Fortes 0 Reputation points
1 answer One of the answers was accepted by the question author.

Program output is correct, but VS reports an error during step-by-step debugging

The C++ code snippet is: class A { public: A(const std::string& ss, const std::string& tt) : s(ss), t(tt) {} void func1() const { std::cout << s; } void func2() const { std::cout << t; } using Action = void (A::*)()…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,804 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,605 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
961 questions
asked 2024-05-29T01:58:25.83+00:00
zzzhhh 40 Reputation points
accepted 2024-05-29T07:36:29.5333333+00:00
zzzhhh 40 Reputation points
1 answer One of the answers was accepted by the question author.

How to get rid of this annoying thing?

How to get rid of this annoying thing (red circled)?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,804 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
961 questions
asked 2024-05-27T10:00:05.6233333+00:00
zzzhhh 40 Reputation points
accepted 2024-05-27T11:59:48.7166667+00:00
zzzhhh 40 Reputation points
1 answer One of the answers was accepted by the question author.

How to stop Windows Task Manager from interfering with VS build

I often get the following error after an app under debugging crashes: DEP1000: Cannot copy file "E...\MY_APP\bin\x64\Debug\MY_APP.exe" to layout "E...\MY_APP.UWP\bin\x64\Debug\AppX\entrypoint\MY_APP.exe". IOException - The process…

Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
961 questions
asked 2024-05-10T15:55:53.4466667+00:00
Hong 1,206 Reputation points
commented 2024-05-15T11:17:37.08+00:00
Hong 1,206 Reputation points
1 answer One of the answers was accepted by the question author.

Visual Studio debugger will not step into code of a separate project that builds to a dll (within the same solution)

I have two projects in one solution. One compiles into an exe which depends on the other project that compiles into a dll. When I try to step into a function from the dll that is called within the exe code, it skips over it. My pdb file for the dll is…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,605 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
961 questions
asked 2024-05-09T23:39:57.78+00:00
jbl 20 Reputation points
commented 2024-05-11T18:26:04.8366667+00:00
jbl 20 Reputation points
1 answer One of the answers was accepted by the question author.

VS unable to debug unhandled exception

I have configured VS to debug all types: However, I still get this prompt when an app crashes: I just want to get a clue about where this crash comes from. All the code of the app is in try-catch blocks. Could anyone offer a tip?

Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
961 questions
asked 2024-05-10T13:52:03.9+00:00
Hong 1,206 Reputation points
accepted 2024-05-10T22:13:37.9666667+00:00
Hong 1,206 Reputation points
3 answers One of the answers was accepted by the question author.

Calendar booking using datagridview

Good day everyone, I make a calendar booking using datagridview. Please take a look the image below. as you can see they have Book start and Book end. Now I want to put a color from date start to date end. Please take a look the image below. I don't…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,804 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,540 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
961 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
992 questions
asked 2024-04-21T12:46:33.5133333+00:00
BgnerNprg207 286 Reputation points
accepted 2024-05-03T10:28:21.58+00:00
BgnerNprg207 286 Reputation points
3 answers One of the answers was accepted by the question author.

How to change the mouse cursor color in Visual Studio 2022?

Hi to every one, I would like to change the color of the mouse cursor on Visual Studio Community 2022, as I have installed the "dark" theme, which I really like, but the mouse cursor is practically invisible. How can I go about changing it? I…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,804 questions
Visual Studio Extensions
Visual Studio Extensions
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Extensions: A program or program module that adds functionality to or extends the effectiveness of a program.
189 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
961 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
335 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
992 questions
asked 2023-03-15T16:31:08.15+00:00
Matteo Tomasetti 25 Reputation points
commented 2024-04-25T20:34:56.4766667+00:00
Juan Pablo Ramirez 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to add Tasks window to Debug Menu

Hi. I am trying to debug my Tasks but The Debug-> Windows menu Item does not have a selection for Tasks.

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,540 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
961 questions
asked 2024-04-22T13:31:09.6033333+00:00
Ronald Rex 181 Reputation points
accepted 2024-04-23T14:54:47.3366667+00:00
Ronald Rex 181 Reputation points
1 answer One of the answers was accepted by the question author.

how do i verify access?

My code couldn't run because i couldn't attach somthing and now im trying to reinstall this x64runtime and it couldnt download it for some reason

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,024 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,804 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
961 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
992 questions
asked 2023-12-19T21:02:15.08+00:00
Ilan Slavin 25 Reputation points
commented 2024-04-17T20:08:16.6+00:00
Pranshu Prajapati 0 Reputation points
1 answer One of the answers was accepted by the question author.

Inconsistent Window Focus Behavior: Debugging vs. Running Without Debugging

In my application, I have a MainWindow that inherits from System.Windows.Window. Within this MainWindow, there's a System.Windows.Controls.Button. Clicking this button triggers the opening of a second window, also inheriting from System.Windows.Window.…

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,540 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
961 questions
asked 2024-04-06T20:02:00.2033333+00:00
Asya Yesayan 20 Reputation points
accepted 2024-04-10T11:08:24.3166667+00:00
Asya Yesayan 20 Reputation points
1 answer One of the answers was accepted by the question author.

IoTHub ingest function to azure digital twin (failed)

I have created a function app for iot hub ingest telemetry data to azure digital twin using visual studio 2022 and the function is successfully being published but the data is fail to deliver. The following is my function app code: The figure below is…

Azure Digital Twins
Azure Digital Twins
An Azure platform that is used to create digital representations of real-world things, places, business processes, and people.
224 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,536 questions
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,147 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
961 questions
asked 2024-04-03T01:54:09.4+00:00
TEE WEI KIAT 40 Reputation points
commented 2024-04-03T17:30:13.12+00:00
TEE WEI KIAT 40 Reputation points
1 answer One of the answers was accepted by the question author.

Exception: "Element Not Found" while calling StartDoc() in Visual Studio 2022 debugger

I am attempting to print from a Desktop application using the following APIs: StartDoc (...) StartPage (...) TextOut (...) When I run my application using Visual Studio 2022 Debugger, StartDoc() throws an exception as shown in the image below.…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,488 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
961 questions
Windows Server Printing
Windows Server Printing
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Printing: Printer centralized deployment and management, scan and fax resources management, and document services
652 questions
asked 2024-03-28T09:23:17.2666667+00:00
Shyam Butani 160 Reputation points
accepted 2024-04-02T05:57:33.0333333+00:00
Shyam Butani 160 Reputation points
1 answer One of the answers was accepted by the question author.

97 Unresolved Symbols in glfw3.lib

Hello, I have been creating a project using OpenGL, namely glfw3.lib. I've done this before in another project, but this time it isn't working, and I cannot figure out the difference between this new project and the working one. The issue is…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,605 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
961 questions
asked 2023-01-03T16:58:30.46+00:00
Alex Kent 26 Reputation points
commented 2024-04-01T07:44:38.1666667+00:00
艺伟 牛 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to use timer to automatically run JavaScript in WebView2.

Hello: For my project, I have to automatically run some JavaScript every minute in WebView2. Even I can manually click on the button to run the JavaScript and get the result, but I can’t figure out how to use timer to run the job automatically. …

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,540 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
961 questions
asked 2021-01-21T18:58:25.26+00:00
john zyd 421 Reputation points
edited the question 2024-03-28T07:39:22.0066667+00:00
Jiale Xue - MSFT 41,976 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to select or use Visual Studio 2022 on Windows project to remotely copy and run dotnet code on Linux(arm64)

I've used the c++ remote linux, but I want to do the same thing with dotnet core on Raspberry Pi 5 or Linux? I want to compose code on Windows VS2022, and then have copied to, run and debug on target.

Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
961 questions
asked 2024-03-24T20:29:14.94+00:00
mwx 41 Reputation points
commented 2024-03-26T17:51:25.9733333+00:00
mwx 41 Reputation points
2 answers One of the answers was accepted by the question author.

How to fix debug button on C#, when it displays "Start" instead of windows local debugger

Hello everyone been coding for some time on Visual Studio, and recently started learning C#. Starting yesterday, i created my first few projects to see if everything works ok, and it did until today. When I opened my projects from yesterday I noticed…

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,540 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
961 questions
asked 2024-03-10T19:40:13.06+00:00
commented 2024-03-11T18:11:22.96+00:00
4 answers One of the answers was accepted by the question author.

Disabling autocompletion from spacebar in VS 2022

This problem is maddening and the only thing I've found is that 2019 isn't going to see a fix for it. I found a couple listed fixes for earlier versions to remove the spacebar from the list of keys that trigger autocomplete but not even a mention of the…

Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
961 questions
asked 2022-03-05T01:02:44.72+00:00
Jingo Unchained 56 Reputation points
commented 2024-02-14T10:18:03.22+00:00
Michael Angelozzi 0 Reputation points
1 answer One of the answers was accepted by the question author.

Debugger Only Shows Integer Values As Hex, Not Base 10

Hello Folks: I'm using Visual Studio Community on Windows 10 Pro to develop C++ code. Yesterday my copy of Visual Studio learned a new trick when I'm debugging code. Any integer variable displayed in a watch window or being hovered over is displayed…

Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
961 questions
asked 2024-02-10T01:49:42.7+00:00
a_unique_name 401 Reputation points
commented 2024-02-10T07:19:30.01+00:00
a_unique_name 401 Reputation points
1 answer One of the answers was accepted by the question author.

How to disable auto break execution when using vsjitdebugger.exe

When using Visual Studio Just In Time Debugger (vsjitdebugger.exe) the debugger breaks execution of the attached program automatically on startup. How can I disable this? The debugger is paused in exe_winmain.cpp: extern "C" DWORD…

Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
961 questions
asked 2024-01-31T00:47:38.9633333+00:00
Trent Cooper 20 Reputation points
edited a comment 2024-01-31T22:02:22.1666667+00:00
Trent Cooper 20 Reputation points