2,382 questions
0 votes
0 answers
11 views
Watch an expression at a specific call stack entry?
In Visual Studio 2022, C# project, I need to keep an eye on an expression that's valid only in a specific method, but I need to keep an eye on it even when I'm stepping through called methods, and ...
0 votes
0 answers
75 views
Variable in Quickwatch window in VS 2022 not showing all its members but only three dots
I am debugging a solution in VS 2022 with two projects. The startup project is an ASP.Net Core application that references a dll project in the same solution, with both projects targeting .NET 8. ...
3 votes
1 answer
64 views
Two projects with same launchsettings.json load with different port numbers
I have a large solution stored in a repository on GitHub. It is working fine. But when I download that repository to another computer, it does not run in debug mode. The solution runs two projects: My ...
0 votes
1 answer
47 views
Unable to debug direct Input modules, dinput.lib/dll
I'm working on a Direct Input Blueprint function library for ue5 (For a number of reasons not relevant, I need to avoid the enhanced input modality of ue5). I've encountered an issue with the ...
0 votes
0 answers
63 views
Can't debug Javascript in WebView2 in a Windows c# app in VS2022
In Visual Studio 2022, I would like to set breakpoints, watch variables, and log output from the Javascript of a WebView2 component used in a Windows app written in C#. This should be possible, ...
0 votes
0 answers
134 views
Use launch.vs.json instead of launchSettings.json in Visual Studio
We are having a "main" application that starts one child "compute" worker processes one after the other. The "main" application creates a complex job that is handed over ...
2 votes
0 answers
181 views
Can't add docker support to project or start project in docker - Illegal characters in path
Since last Friday, I have been unable to create projects with Docker support or start them for debugging in Docker via Visual Studio Pro 2022. When I try to create a project with Docker support or add ...
0 votes
0 answers
13 views
Build sqlproj for dacpac file shows connect dialogue on debug start (f5)
I would like to reference a sqlproj project in one of my other projects to get a current dacpac file so I can publish a database. I need this both while running unit tests but also to debug my ...
0 votes
0 answers
246 views
async request fails with httpx.UnsupportedProtocol unless run in debugger
I'm trying to connect to the XTS Market Data API using the xts_api_client's async client (xts_connect_async) in Python. Here's the code I'm using: from xts_api_client.xts_connect_async import ...
-1 votes
1 answer
197 views
Can't run a simple container support enabled console app: MSB4018 / The error was: Illegal characters in path
I am stuck due to this error. I have downgraded from Enterprise to Pro version of Visual Studio 2022 then this error came in. I have tried numerous times repairing, uninstalling, reinstalling, and ...
0 votes
0 answers
21 views
How to always break on Unhandled Exception and never on Handled Exceptions in Visual Studio [duplicate]
In Visual Studio Debug mode, I wish to always, until I retire: for Unhandled exceptions, see the pop-up window with exception information. For every type of exception in existence, whether I've ever ...
0 votes
0 answers
78 views
Debugging hosted background service without blocking web controller api response in ASP.NET Core
I have a hosted background service in ASP.NET Core, and it coexists with a bunch of web controller APIs. The background service is registered as a hosted service: services.AddHostedService<...
0 votes
0 answers
41 views
finally block is not executed when VS is attached as a result of unhandled exception [duplicate]
I have this small application: C:\work\PassThruExc> tree /f Folder PATH listing for volume OSDisk Volume serial number is F6C4-7BEF C:. │ PassThruExc.csproj │ PassThruExc.sln │ Program.cs │ └─...
0 votes
0 answers
135 views
How does Visual Studio debugger attach to Chrome when debugging an ASP.NET Core MVC web app?
Before asking the actual question let me explain why I decided to post in SO instead of SuperUser or any other Chrome-related community for that matter. Even though the answer may have to do with ...
0 votes
0 answers
15 views
Removing prompt for debug configuration from Visual Studio Code [duplicate]
I just want to run my programs without being asked to "Select a debug configuration" every time. This program I am working on right now is an extremely basic usage of GLFW I followed from a ...