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

Test hangs when in debug mode - VSCode - dotnet 9 #1246

Open
erwinkramer opened this issue Nov 18, 2024 · 6 comments
Open

Test hangs when in debug mode - VSCode - dotnet 9 #1246

erwinkramer opened this issue Nov 18, 2024 · 6 comments

Comments

@erwinkramer
Copy link

If running tests, it works just fine. If i go into debugging instead of running, then it straight up doesn't do anything but hang.

Might be similar to #1018, but i got a repo to test with.

Check out https://github.com/erwinkramer/bank-api/blob/main/bank-api-minimal-unittests/Api.Test.cs where i have the 'broken' setup.

Running in the latest VSCode on Windows with the extensions as written in extensions.json and the VSCode setting as specified in settings.json.

By the way, it is a dotnet 9 project.

Trying to cancel the run is also unresponsive when it's hanging:

image

@erwinkramer erwinkramer changed the title Test hangs when in debug mode Test hangs when in debug mode - VSCode - dotnet 9 Nov 18, 2024
@thomhurst
Copy link
Owner

Hmm interesting. Do you know if it affects any other IDEs or have you not tried?

@erwinkramer
Copy link
Author

@thomhurst just tested in Microsoft Visual Studio Community 2022 (64-bit) - Preview and that works fine.

@thomhurst
Copy link
Owner

Wonder if it's a VSCode bug then. I'll see if I can replicate - I don't really use VSCode for .NET normally

@erwinkramer
Copy link
Author

Wonder if it's a VSCode bug then. I'll see if I can replicate - I don't really use VSCode for .NET normally

Let me know, i guess if you have the same issue i can report back at https://github.com/microsoft/vscode-dotnettools/issues?

@thomhurst
Copy link
Owner

Yeah same happens for me - I reckon it's worth opening an issue with them

@erwinkramer
Copy link
Author

Yeah same happens for me - I reckon it's worth opening an issue with them

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants