Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logpoint freezes on start #6585

Closed
WardenGnaw opened this issue Oct 23, 2023 · 1 comment
Closed

Logpoint freezes on start #6585

WardenGnaw opened this issue Oct 23, 2023 · 1 comment

Comments

@WardenGnaw
Copy link
Contributor

Describe the Issue

Program.cs

for (int i = 0; i < 9; i++)
{	
	Console.WriteLine(i);
}

In 3rd line I've logpoint with "i = {i}" message, but after start debugging it's display in debug console first log point and frezes for like 10-15 seconds don't know why.

Steps To Reproduce

  1. dotnet console app in .NET8.0
  2. In debugging session with follwoing launch.json
{
	"version": "0.2.0",
	"configurations": [
		{
			"name": ".NET Core Launch (console)",
			"type": "coreclr",
			"request": "launch",
			"preLaunchTask": "build",
			"program": "${workspaceFolder}/bin/Debug/net8.0/Debug101.dll",
			"args": [],
			"cwd": "${workspaceFolder}",
			"stopAtEntry": false,
			"console": "internalConsole"
		}
	]
}

task.json

{
	"version": "2.0.0",
	"tasks": [
		{
			"label": "build",
			"command": "dotnet",
			"type": "process",
			"args": [
				"build",
				"${workspaceFolder}/Debug101.csproj"
			],
			"problemMatcher": "$msCompile"
		}
	]
}

Expected Behavior

Debugging session should dont freeze after displaying first log message

Environment Information

I'm using windows 11 Pro version: 10.0.22621 compilation 22621 and newest vs code


Originally reported by @Xariif from microsoft/vscode-dotnettools#601

gregg-miskelly added a commit that referenced this issue Nov 2, 2023
This PR updates the version of the debugger to 2.9.0. This includes various bug fixes, but most importantly:

* #6598 -- fixes support for writing to the console without a newline character (`Console.Write` case)
* #6585 -- fix problems with logpoint handling
@gregg-miskelly
Copy link
Contributor

Fixed in the next version of the extension.

@WardenGnaw WardenGnaw added this to the Next milestone Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants