All Questions
667 questions
0
votes
1
answer
43
views
JetBrains Rider debugger steps into Unity Package Cache instead of returning to user code
I'm using Rider 2024.3.6 and Unity 6000.0.34f1 on Windows 10.
When debugging a method that is attached to a Unity UI Button event, Rider behaves unexpectedly:
I place a breakpoint inside my method.
I ...
0
votes
0
answers
78
views
Unable to use closures (actions, funcs) in dotnet debugger
I'm trying to debug a .net 8 C# project using Rider 2023.3 and I've run into a snag I've seen many times before. Using the interactive debugging prompt, whenever I try to evaluate an expression ...
-1
votes
1
answer
102
views
How can I debug IIS w3wp.exe in VSCode without running it as administrator?
I’m trying to debug an application hosted on IIS using VSCode, but I’m running into a permissions issue. When I open VSCode as a standard user, I cannot see the w3wp.exe process in the list of ...
2
votes
0
answers
52
views
What steps can I take to debug an issue with a deployed program having an AccessViolationException?
I've spent some time looking into this problem for the last week or so. I've seen several threads on StackOverflow about AccessViolationException, but I haven't been able to find anything super ...
0
votes
1
answer
43
views
How to Set Breakpoints in mdbg.exe?
I'm trying to use mdbg.exe for debugging C# code from the command line, replicating this tutorial. I've installed Mdbg.exe as explained here.
using System;
using System.Collections.Generic;
namespace ...
0
votes
1
answer
93
views
Debugging application freeze (infinite loop) using dump
Is it possible to debug an infinite loop in a .NET application by creating a dump file and then attempting opening in Visual Studio?
Consider the following code:
while (fileContents.Length < ...
0
votes
1
answer
119
views
Debugging crash dump, call stack gives wrong line number
I'm attempting to debug a crash dump in Visual Studio 2019. However, the call stack is giving me the wrong line number for the method that calls the one in which the crash occurs.
A bit of background -...
0
votes
0
answers
36
views
Time travel debug C# xUnit test
I use xUnit (C#, .NET) for an integration test. It's hard to find why it fails and I want to use Time Travel debugging.
Unfortunately, I don't see how I can do that with Visual Studio. The test ...
1
vote
1
answer
454
views
How can I see the content of a cshtml file in browser developer tool?
Right now I am facing the problem that I have a error in my JS code. I am developing in .net core mvc web. The browser console is telling me this error:
Uncaught TypeError: Cannot read properties of ...
0
votes
0
answers
58
views
Stepping into library's or .NET code while debuging with Visual Studio Code
I want to step into a library's or .NET code while debugging. But it always skips the lines when a function calls into implementation that is not in my project source files.
I am using .NET 6
Apart ...
0
votes
1
answer
54
views
Automatically Choose another .NET-Version for Debugging an external application in Visual Studio
We have a DLL-Plugin using .NET-Framework 4.8.
For debugging we have to start the external application.
This Application seems to use .NET Core. When I start Debugging the following Dialog pops up
...
0
votes
2
answers
620
views
"Source Not Found: You need to find class to view the source for the current call stack frame" as result when debugging project code
While investigating issues in a .net solution, I am encountering problems as I am unable to do debug or do any action. This is causing issues with debugging, such as breakpoints hitting or setting ...
2
votes
1
answer
425
views
Debug adapter protocol - confused
I am creating C# Avalonia application with scripting capabilities using Microsoft.CodeAnalysis.CSharp.Scripting.
Scripting is done inside the application. I would like to have the ability to do ...
0
votes
0
answers
42
views
Impossible to step into nuget package
I have a dotnet7 console app with a nuget package created by my team.
I tried to step into the class from my console app to the package class but I have this window that pop
enter image description ...
3
votes
2
answers
776
views
How to debug multiple console applications with VSCode in C#
I have a solution with multiple console apps and I want to debug the selected one like in Visual Studio. Is there a way to do it?
I found that the only way for me was to delete launch.json and add it ...