Questions tagged [visual-studio-debugging]

Questions related to debugging methods and tricks in VisualStudio

2287 questions
0
votes
1 answer

Error: The specified module could not be found-module.js:597 return process.dlopen(module, path._makeLong(filename));

Debugger listening on [::]:5858 module.js:597 return process.dlopen(module, path._makeLong(filename)); ^ Error: The specified module could not be…
0
votes
0 answers

localhost not available in Visual Studio 2015 in debug mode but is available in non debug mode

I am getting this error when trying to debug in vs 2015: localhost refused to connect. Here's the situation: I am running vs 2015. I have been using this machine and this installation of vs2015 for 3 years. In fact both machine and vs was there…
0
votes
1 answer

Exporting a list of program and function names to a text file during program execution (.NET C#)

I've just inherited a system that is 100K+ lines of C#/.NET code. Over the past few years, many of the functions of the system have been subsumed by other systems. The only reason we keep running this system is that it provides a small subset of…
TBlair
  • 1
0
votes
0 answers

Step into custom nuget c++ package

I am trying to release a C++ nuget package into our company Nuget feed. The problem is that we can't step into functions during debugging (F11). We need to be able to debug inside the package sources but it seems i cannot made it work. I enabled in…
edenroz
  • 13
  • 6
0
votes
2 answers

Missing 3 Buttons in Debug Toolbar for Visual Studio 2022 (F#)

New to VS 2022 and programming in general. I am looking at the Debug toolbar while coding F#, and it seems to be missing 3 buttons: "Step Back Into", "Step Back Over", "Step Back Out". They are selected under the 'Customize' menu as per…
0
votes
1 answer

Why does all members of a class show error 'CS0103'

I'm testing a piece of code in c# and vs2022, but I encounter some problems. I try to track the value of some members in a class, but the VS2022 shows error CS0103. So I would like to know why VS2022 can't show their values because they are…
0
votes
1 answer

UWP c# crashes with no debug output

I just downloaded UWP/.NET to run some project I found of github. private void OnLoaded(object sender, RoutedEventArgs e) { var button = null as Button; var b = button.CommandParameter; //throw new…
Tom Huntington
  • 2,260
  • 10
  • 20
0
votes
1 answer

CS8852 Cannot edit value of init property in VS Debugger

I have a property defined as public bool? Enable{get; init} in a record. After the record is created, I broke into VS debugger and tried editing its value. It gives the following error when doing so: CS8852: Init-only property or indexer can only be…
Frank Q.
  • 6,001
  • 11
  • 47
  • 62
0
votes
0 answers

Exclude external sourcemaps from loading in chrome debug extension

While debugging an extension locally (but taking libaries from a remote host) it is not necessary to include all sourcemaps of the remote, but only my local part. How to I exclude all source maps from an external resource to improve the startup…
Ole K
  • 754
  • 1
  • 9
  • 32
0
votes
0 answers

Visual studio debug two applications in parallel

I have two projects communicating through RabbitMQ and I want to debug them at the same time, but is there a way to say for one project to stop debugging so I can receive the messages from the message queue and then continue?
nnchvxx
  • 31
  • 5
0
votes
1 answer

Truncated String Visual Studio 2022 Immediate Window C++

I'm developing a MATLAB MEX-file (DLL) in C++ that I'm debugging with Visual Studio. I'm able to successfully step through the code but I'm having problems displaying the contents of certain variables (matrices). Matrices are stored in contiguous…
0
votes
0 answers

Why is the add, myWord+2 give the result as EAX = 00000003?

So I have this assignment where I have to write the following code in assembly language and then explain what happened with the EAX register. I have already done so, but I get confused at myWord+2 because I do not understand why the eax register is…
0
votes
0 answers

Visual Studio Automatic Debug type does not load symbols for Managed process

Why is the Type in VS Attach to Process showing X64 for PID 88048 (What can cause this ?) even though it is Managed code ? Using default debugger type as Automatic, it assumes the process is native code, failing to load symbols (error is This module…
Frank Q.
  • 6,001
  • 11
  • 47
  • 62
0
votes
0 answers

How to debug a web assembly c# code deployed to local azure service fabric

I have a web assembly application that I deployed to the local azure service fabric cluster on Windows 11. How can I debug the c# code defined in the web assembly page through the browser and/or visual studio?
0
votes
2 answers

Remote Debugging in Azure Container Apps

I will have 50-60 microservices each built as asp.net web API, all running within a single Azure Container Apps environment, each able to synchronously communicate with each other via DAPR. Is it possible to attach (via VS Code or VS) a debugger…