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
64
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
247
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
136
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 ...
0
votes
0
answers
153
views
Unable to debug .NET MAUI Android App in Emulator or on Device using Visual Studio 2022
I have been developing a .NET MAUI app for a couple years now and suddenly over the past couple of weeks (around 10 days) I have not been able to debug my app on a device or a emulator.
When I stop a ...
1
vote
1
answer
328
views
Visual Studio debugging C# on Linux: Breakpoints not visible despite successful process attachment
I'm having an issue with remote debugging a C# application on a Linux server from Visual Studio. Despite being able to attach to the process, my breakpoints are not being hit, or more specifically - ...
-1
votes
1
answer
105
views
Debug.Assert(false) with no debugger attached
I have a C# app which is launched by another C++ exe.
The c# is a debug build.
When using .Net Framework 4.7 the Debug.Assert(false) would always show a dialog giving me a chance to attach a debugger.
...
1
vote
1
answer
223
views
How to use different Build Paths and Debug profiles for different configurations in Visual Studio 2022 .net projects
I'm making the move from .net Framework to developing using .net Core, but can't figure out how the build and debug system works for .net Core projects.
I have different build needs. I am dveeloping a ...
1
vote
1
answer
188
views
How to debug single-file .net executable on Linux
I'm building a Linux .net application and debugging it by publishing self-contained executable to the remote target host and attaching Visual Studio debugger.
When I publish it as a single file with ...
2
votes
0
answers
208
views
Is there a way to disable "Just my code" debugging in Visual Studio 2022 for Python?
In Visual Studio 2022, I went to "Debug" => "Options" => "General" and unchecked "Enable Just My Code"
I also went to "Debug" => "...
3
votes
2
answers
2k
views
"error: unknown option: --interpreter=mi" trying to debug with lldb on Mac
I am receiving the "error: unknown option: --interpreter=mi" when trying to debug with lldb in VS Code on Mac for C++, Clang Compiler, and an OpenMP implementation. I am unable to debug ...
0
votes
2
answers
418
views
How do I correctly use Attach to Process to debug my C# DLL in a Unity game? (No Unity IDE involved)
I am making mods for a game made with Unity. They are compiled using netstandard2.1, Class Library project type. The game then dynamically loads those mods' DLL files. I code it using Visual Studio ...
3
votes
2
answers
1k
views
When single stepping (Step Over) through a multithreaded C++ application in Visual Studio, do all threads execute in lockstep in parallel?
Suppose you're debugging an application with 2 threads, Thread A and B, and you have a breakpoint set somewhere that is reachable by A. You select A as the active thread and run until it hits that ...
-1
votes
1
answer
120
views
Accidentally closed Visual Studio diagnostic tools
I have committed the cardinal sin of closing the Diagnostics Tools window, and cannot open it again. Every google search gives solutions that requires me to either uninstall and reinstall VS, enable ...
-1
votes
1
answer
340
views
Problem with IIS Express in Visual Studio 2022
I have the next problem: it occurs when I try to debugg my project.
I checked other threads with similar problems but the solutions didnt work to me.
I tried to delete the folders .vs, .bin, ...
1
vote
0
answers
206
views
VSCode Debugger only shows up for a second and stop working
Context
I am using VSCode on my host machine (using Windows) to remote (using Remote - SSH extesion) into my VM (Ubuntu) and I want to debug my C program using gdb but with VSCode user interface.
I ...
0
votes
1
answer
29
views
How to find command line arguments of process when attached with Visual Studio's debugger?
After attaching to a process in the Visual Studio debugger, I want to find what this process's command line arguments are, how can I do that?
0
votes
0
answers
279
views
Debugging a C++ exe from a C# startup project
I have the following setup in my VS solution:
A C++ static lib project (Core)
A C++ exe project (Editor, links Core)
A C# net8.0 shared lib project (Project)
What I want to do is have "Project&...
0
votes
0
answers
63
views
How to add logs to "Microsoft.Common.CurrentVersion.targets"?
As mentioned in my previous question, I'm having troubles getting my debugging symbols file created, so I'm trying to add logs in the corresponding target file.
While compiling my project, I see the ...
1
vote
0
answers
54
views
Automatically closing projects that are not started with debugging
I have a VS2022 solution with quite a few projects. And I have several launch profiles where some projects are started without debugging. Those projects continue to run when I stop the solution - all ...
2
votes
1
answer
165
views
Can a PyTorch Model Built in Debug Mode Be Used in Release Mode? TorchScript Model Load Error in Release Mode but Works in Debug Mode
I'm encountering an issue when trying to load a TorchScript model in my C++ application using LibTorch. The model loads and works fine in debug mode, but I get an exception when switching to release ...
0
votes
1
answer
78
views
How to Disable Syntax Highlighting in LuaHelper While Keeping Debugger and Formatter Features?
I am working with Lua in VS Code and using two extensions:
LuaHelper by Tencent (provides debugging and formatting features).
MTA:SA Lua by Dominic Hock (provides syntax highlighting for MTA-specific ...
1
vote
0
answers
96
views
Accelerate natvis for type-erased "any"-style class
Our large code base has a class AnyRef that contains a type-erased reference to some object:
struct AnyRef {
int type = 0;
void* ptr = nullptr;
};
For example, if type==1, then ptr is ...
0
votes
1
answer
1k
views
"Backend QtAgg is interactive backend. Turning interactive mode on"
I am new in debugging so when I try to run my file with Debugging mode it shows me a warning "Backend QtAgg is interactive backend. Turning interactive mode on." and breakpoint doesn't work ...
1
vote
2
answers
89
views
Why does the disassembly of this function show a two-operand idiv?
I wrote the following C program:
#include "stdio.h"
__declspec(noinline) void DivideTest(int num, int denom)
{
int quo = num / denom;
int rem = num % denom;
printf("...
0
votes
1
answer
81
views
How to make Visual Studio evaluate Qt expressions?
Whatever Qt expression i try to evaluate while debugging on Visual Studio 2022 doesnt work, for example:
Conditional breakpoints with Qt expressions doesnt work.
Any Qt expression on watch window ...
0
votes
1
answer
83
views
Does the DotNet Source Stepping feature of Visual Studio works when debugging on Linux (WSL)
I'm able to see the source code by pressing F11 when debuging on Windows, but in case of WSL just step over occurs if I press F11.
In the Options->Debugging->Symbols the checkbox Microsoft ...
0
votes
0
answers
44
views
Weird Python Error "TypeError: an integer is required" on a List - Only in Debugger - Fixed by adding print
I have a rather strange error in the following code:
CUSTOMER_ORDER = ["Some", "Customers"]
ticket_types = ["analysis_tickets"] # is list because copied from legacy code ...
0
votes
1
answer
97
views
Where can I find information on the maximum number of bytes a processor supports for setting data breakpoints?
In Visual Studio, you can set breakpoints on data so that when the data is mutated, the breakpoint triggers. This appears to rely on hardware support, and my current processor only supports 4 bytes (...
1
vote
1
answer
169
views
vs2019 Performance Profiler no CPU usage display, All tools are not available.What should I do?
OS: Windows 11 Home 10.0.22631
CPU: Intel i7-13700,2100Mhz
Memory: 48GB
Vsiual Studio Enterprise 2019 Version 16.11.31.
It's a mixed C and C++ project.
When I switch Visual Studio to Chinese, memory ...
1
vote
1
answer
73
views
How does an "Attach to Process" action for remote process decide whether or not to do the actual attaching?
I'm working on a C# application, installed on a remote computer. On that remote computer, msvsmon.exe is running.
When I compile my sources and install the latest build, I am able to perform an "...
-2
votes
2
answers
107
views
Visual Studio missing SQL Debugging menu option
I have 2 PCs with the same latest Visual Studio Version 17.11.5 and SQL Server Data Tools 17.11.47.0 installed.
Why does one installation have the Execute With Debugger option missing?
edit: I guess ...
1
vote
1
answer
67
views
JavaScript components working in testing mode but not after published live
I've created a simple website template with HTML, CSS, and JavaScript. I tested it manually in Live Server mode (Visual Studio Code), and everything worked fine. I've updated the website's code, and ...
0
votes
1
answer
216
views
Rsync error. Specified method is not supported. Visual Studio 2022 community remote debug
I want to debug my project, which uses CMake. I have a virtual machine (ubuntu) and I am using Connection Manager in VS2022 to connect to my machine by ssh. The connection is successful, but when I ...
2
votes
0
answers
78
views
Problem making a quote appear in the memory windows in Visual Studio
.386
.model flat
.data
quote byte "Machines do feel",0
message byte SIZEOF quote DUP(0),0
.code
start proc
mov esi,0
mov ecx,SIZEOF quote
LP:
mov al, quote[esi] ;get a ...
1
vote
1
answer
184
views
Why DAP adapter shows this error on this expression evaluation (which has :: operator)?
I'm rather new to PHP and now I'm debugging an app with the DAP adapter in NeoVim (and it uses the VS Code PHP dap adapter).
I paused on a breakpoint where this particular expression is present:
...
1
vote
0
answers
96
views
How to debug Julia script in VS studio code using a different project/environment
I have a Julia script named by xx.jl, and I set the package and modules in another directory ../my_env. So every time I want to run it, I used the command in the terminal Julia --project=../my_env ./...
0
votes
1
answer
38
views
detect identity of attached debugger from windows c++ app
I'm writing a Windows app in C++ and I'm writing a lot of diagnostic information to the debugger (with OutputDebugString).
Sometimes I debug in Visual Studio itself and sometimes I use SysInternals ...
0
votes
0
answers
63
views
How to get the binary content of a local variable like an image in the VSIX plugin when the debugger is in break mode?
I've created a VSIX plugin with a custom window, subscribed to the DebuggerEvents.OnEnterBreakMode event, and when the event occurs I try to access the _dte.Debugger.CurrentStackFrame.Locals.
But this ...