Questions tagged [visual-studio-debugging]

Questions related to debugging methods and tricks in VisualStudio

2287 questions
0
votes
1 answer

How to add and existing next.js app to a visual studio solution VS 2022

I currently a visual studio solution with lots of diffrent projects. I have an existing nextjs app that I want to add to the solution, so that I can using visual studio 2022 (not VS code) to develop and debug the application. I have installed the…
0
votes
1 answer

How to debug line by line Reactjs/NextJs app using Visual Studio 2022

I have a visual studio solution that has several diffrent project types. One of the projects is a NextJs App, to run the app I navigate to the directory and do the usual "npm run dev" command. That starts the app on localhost:3000. The app runs no…
0
votes
1 answer

How to suppress value addresses from debugger

I can't find solution in Google. I looked at every setting in VS. I couldn't find it. Sorry for possible duplication. But how do I suppress all those addresses in the debugger output? I just want to see the value_=3 and "sand.texture".
0
votes
0 answers

App.xaml.cs will run again unexpectedly in Debug mode

I am using the APP to connect to a device in Xamarin debug mode. When the system is trying to connect to the device(like the screenshot shows "Connecting to device..."), if I press the back button to home(desktop) and back to APP, I find that the…
0
votes
1 answer

Unable to debug a TypeScript testing framework using Visual Studio Code

I am not able to get debugging working on VSCode for a testing framework using WebdriverIO . Only this message is displayed: - Waiting for the debugger to disconnect. However, I am able to get debugging up and running for a TS code one time. If I…
0
votes
0 answers

DataGridView weird behavior in Visual Studio

My datagridview[Resident's Information DatagridView] has a weird behavior. When I try to run my application using Debug in Visual Studio It takes so much time before Datagridview loads fully but when I try to run the program through the external…
0
votes
1 answer

How to use visual studio code to debug a Python & C++ program?

I've looked up video tutorials on this that seems to focus just on how to debug a single file. I'm running a simulation code that probably goes through 100s different python and C++ source files. There's a particular spot in a python function that I…
24n8
  • 1,898
  • 1
  • 12
  • 25
0
votes
1 answer

When something is highlighted in a debug console, execution just pauses until it's unhighlighted ... how do I stop this behaviour?

I start a visual studio project with debugging. The console pops up, and I often accidently highlight something, which causes execution to pause until I unhighlight it ... I don't want it to pause ever unless I've set appropriate breakpoints. I've…
Jonathan
  • 2,778
  • 13
  • 23
0
votes
1 answer

How to immediately show watch value while debugging Blazor webassembly

I'm trying to debug some code in a blazor webassembly code behind file. It mostly works as I am used to but for some reason it doesn't show the value but a function. You can see this in this screenshot: I'm using Visual Studio 17.5.0 Preview 1.0…
0
votes
0 answers

Microsoft Visual Studio Community 2022 (64-bit) 17.4.2 can't debug .Net Standard 2.0 Xamarin on Samsung Galaxy J5 2016 with Android 7.1.1

I made that question to the Microsoft community months ago, the solution I came up with was to install the previous version of Visual Studio, 17.2.6, that could work with that phone. Then I got a new testing phone and I could debug on it just fine…
0
votes
0 answers

I have a problem with the Debugger in Visual Studio 2022

I have set debugging points for each line in the code below. But for some reason Visual Studio stops debugging after it gets to the following line: string standardError = cmd.StandardError.ReadLine().Trim(' '); The code: await Task.Run(async ()…
0
votes
1 answer

D3D11 Debug Layer shows Name="unnamed" even if DebugName property is set

D3D11 Debug Layer shows Name="unnamed" even if DebugName property of the D3D11 object is set with a name ("test" for example). Context is D3D11 with C# using Vortice. Debug Layer seems to be working well. It is active using DirectX Control Panel or…
MarcioAB
  • 601
  • 1
  • 5
  • 11
0
votes
1 answer

Breakpoints set but not yet bound in library project

I'm trying to debug my code in Visual Studio but my Breakpoint is not hit,it's giving me this message "Breakpoints set but not yet bound" The breakpoint is in a project that is not set as StartUp Project because it is a library project, my…
Marduk
  • 125
  • 2
  • 14
0
votes
1 answer

Dynamic Preview When Debugging MVC in Visual Studio

Perhaps this is a simple fix or setting change, but I'm looking to be able to edit the document being previewed when debugging in Visual Studio. For example, you load a page in your MVC app and there's a debug point set in a Javascript file used by…
0
votes
1 answer

'Access violation' error in WinUI 3 desktop app cannot be 'caught'?

I have a fairly complex WinUI 3 desktop app (v1.2, .NET 7, x64 in Debug mode) that keeps failing (after a specific sequence of events only) with a message from Visual Studio 2022 Enterprise in the Output window that says: The program '[28716]…