[BUG] Configuring a logpoint including variables after a breakpoint breaks the debugging session #583
Labels
area-dotnet-debugging
Issues around .NET Debugging with console, ASP.NET, or Aspire
bug
Something isn't working
Milestone
Describe the Issue
I wanted to configure a logpoint with interpolated variables after a breakpoint. However, when I clicked on "Step Into" several times after the breakpoint, and reached the logpoint, then the debugger would stop working.
The result of the logpoint is not displayed in the debugging console. If the logpoint is configured on a line such as
Console.WriteLine()
, the text passed to this method is not printed on any console (no matter if theconsole
is configured tointernalConsole
orintegratedTerminal
inlaunch.json
).The debugging session can still be stopped or restarted but the bug happens again. However, at this point, it's not possible to continue clicking on "Step Into", because the debugger simply hangs.
I'm not sure if I'm posting in the right repository, but this bug does not happen on Visual Studio 2022, which makes me think it's a bug related to Visual Studio Code extensions for C#.
Steps To Reproduce
dotnet new console
is fine.Program.cs
with the following code:{var1}
{var2}
var1
as expected (0
).Console.WriteLine()
is not displayed either.Expected Behavior
The debugging session should continue after the second logpoint, displaying the value of
var2
according to the logpoint and the value passed to theConsole.WriteLine()
method.Changing the value of the second logpoint on line 11 to any normal text (such as
Logpoint value
) makes the debugging session continue normally.Environment Information
The text was updated successfully, but these errors were encountered: