Questions tagged [visual-studio-debugging]

Questions related to debugging methods and tricks in VisualStudio

2287 questions
0
votes
1 answer

How to find the pdb or dll location for symbols you have already loaded?

If I am debugging something in Visual Studio, and I am looking through the call stack, and some code in the stack is external code, and I click to Load Symbols for that code, and the symbols load, and I can now browse through the source code...…
NotAPro
  • 136
  • 2
  • 17
0
votes
1 answer

Flutter app debugging failed, dart:html missed

Launching lib\main.dart on Android SDK built for x86 in debug mode... Invalid depfile: G:\name\flutter_projects\flutter_application_1.dart_tool\flutter_build\f1291c0d140e6f8c93f6f49b9ff6a808\kernel_snapshot.d Invalid depfile:…
0
votes
0 answers

Visual Studio (2017) Debug Source Not Available

Since this morning, I can't debug my console application anymore in Visual Studio. I've clean the solution, even delete the entire Debug folder but when I try to run in Debug, a new tab opens with the following message: Source Not Available Source…
Hydraxize
  • 161
  • 10
0
votes
3 answers

VS Code throws ModuleNotFoundError despite folder available

I'm working on creating a Python/PySpark library using VS Code. My goal is to debug in VS Code and create a .whl package to be installed in a Databricks cluster. I face the following situations: if I use from…
Luiz Viola
  • 2,143
  • 1
  • 11
  • 30
0
votes
1 answer

Cannot debug Systems.Windows.Forms.Control (PDB file not found)

I try to debug a problem, where the Size property of a Panel is overwritten by an unknown source. I did not find any self written code in the project, that directly accesses this property, so there has to be some underlying code, that is called and…
0
votes
1 answer

Debug Console REPL not responding to a debug session. Not able to interact with

So today when debugging my TypeScript code I've run into a pretty abtritary error in VSCode. When starting a debug session. I was not able to interact with the "DEBUG CONSOLE". The "DEBUG CONSOLE" window just didn't respond. It seems that the "DEBUG…
0
votes
1 answer

With the Visual Studio debugger, what's the best way to evaluate multiple function calls on one line?

Let's say I am using the debugger in Visual Studio on the following code: if (method1() == method2()) { // do something } Is there a way to see the results of method1() and method2() without manually stepping into each one and going through the…
0
votes
1 answer

C# How to Debug inside the DT.Rows.Add method

I have the following method (below), which throws this error: "Arithmetic operation resulted in an overflow". The table contains 192526 rows and 9 columns. Is there a way to place a breakpoint for each item inside the "dt.Rows.Add()"? I.e. can I…
KVN
  • 863
  • 1
  • 17
  • 35
0
votes
0 answers

Why do I get this error message when debugging my ASP.NET application?

I'm developing an ASP.NET app using Visual Studio Professional 2019. I use Microsoft Edge as my browser. When I start my app without debugging (Ctrl + F5), everything works fine. When I start my app with debugging (F5), I get this error message…
0
votes
1 answer

How to fix dart ambiguous import package error message

The name DateUtils is defined in the libraries package:calendarro/date_utils.dart and package:flutter/src/material/date.dart (via package:flutter/material.dart). Try using as prefix for one of the import directives, or hiding the name from all but…
0
votes
1 answer

Visual Studio Custom Solution Configuration and Debug.Print

I've created a new solution configuration in Visual Studio named "QA", copying its settings from "Debug". After switching to the new "QA" configuration, statements in my VB code such as Debug.Print, My.Application.Log.WriteEntry and…
0
votes
0 answers

How to change a website's web root in Visual Studio 2022? (+ complications)

Using Windows 10, Visual Studio 2022 17.2.4, Angular 16.15.1. I created my project using ng new [project-name] etc... Project has configuration files in root folder then website in /src folder. I opened my project in Visual Studio 2022 through File…
TTT
  • 1,848
  • 2
  • 30
  • 60
0
votes
3 answers

PutAsync() method call failing in Blazor WebAssembly project, yet debugging not working well enough to see what's going on

I've been trying to learn Blazor WebAssembly programming and have been doing a follow-along project along with the Pluralsight course I'm working on. What happens is that the PutAsync() method in the following code fails: public async Task…
0
votes
1 answer

When I first created the flutter project,its work...but

It worked normally when I first created the flutter project and debug the project as soon as I created it. But after creating the second project, syntx errors continue to occur. I hate the red line Most error messages are like this Undefined class…
guricoder
  • 5
  • 5
0
votes
2 answers

I just can't get the Visual Studio for Mac debugging to work (the option is greyed out)

no idea what I'm doing wrong here. I have two macs at home, one is mine, one is a work laptop. I have VS 2022 Preview installed on both, and .net 6 on both. On my home mac, if I start a new c# Console app I'm able to just stick a break point on the…
1 2 3
99
100