-
Notifications
You must be signed in to change notification settings - Fork 98
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
Not launching debugger #247
Comments
Same here. Did you figure it out @teqdruid ? |
Nope |
I'm having the same issue. "Waiting for debugger to attach". Any updates on this? |
Me too. |
Hey guys and sorry for slow updates. I will take a look at this over the next few days/weeks. I have a feeling that the slightly hacky way we tried to approach this with is no longer working. The debug support was a proof of concept thing so it might be that we remove it all together. Will keep you posted. |
Mine still hangs if there are multiple projects especially if there is multiple solutions in the same folder even if you try and debug a test in the project that omnisharp is currently watching. |
@JohnGalt1717 Would it be possible for you to share something that causes this behavior? Much easy for me to troubleshoot then. |
This enables all the scenarios one needs to do development: Build, Clean, Run Tests, Debug Tests. *But* it's all less than compelling: - .NET Test Explorer Pane can't debug tests (formulahendry/vscode-dotnet-test-explorer#247) - The built in OmniSharp support doesn't let you run all the tests with a shortcut, or with a command. Only at the class level - The standard editor commands for running tests are fine, but debugging is a bear
@stefanforsberg Basically I have multiple test projects in the same SLN. As soon as I have more than one, and go to the .net test icon on the left side and right click on the test and choose debug test, the logs have a ton of "Waiting for attach..." messages and it never does. The same works fine in VS.net |
Also for everyone in here I think everyone would benefit from the following being added to vs code so that @stefanforsberg and everyone maintaining this had a full framework for testing in vs code since vs code is a mess right now of multiple test tools stomping on each other etc. (i.e. Angular/jasmine, .net test, etc.) It would be great to see this project be able to implement a standardized interface within vs code that manages tests etc. |
@JohnGalt1717 Ah, thank your for bringing that discussion to my attention. I'll add a seperate issue for that so we have a more natural place to keep track of it. |
How's this coming? Looks like the PR doesn't actually fix the issue? This is a blocker for us moving entirely to vs code instead of visual studio. |
@JohnGalt1717 Hey! I’ve not really gotten any feedback from my message here #247 (comment) so at the moment I don’t have much to go on. What I need to figure out is if people are having issues with the debugger from omnisharp or this extensions debugger. If it’s the omnisharp one it’s hard for us to do anything since our debugger is using the one from omnisharp |
@stefanforsberg So what happens is that it starts it up, you see the project compile and execute, and you get this: Build succeeded. Time Elapsed 00:00:05.60 Started debugging process #44528. However, it doesn't return success nor fail in the test tab, and while you can run debug from the test tab, it won't respond to goto test anymore as a result. Only restarting visual studio code fixes it. In the debug console the last line is: The program '[45204] testhost.exe' has exited with code 1 (0x1). The test passes in vs .net and if you just run it directly. |
In relation to this issue: Output of the extension:
In this solution there are two projects. One is targeting netstandard2.0 and contains the code under test. The other project is targeting netcoreapp3.1 and contains all tests. The extsion finds 10 tests, then logs three times that it cannot find the test. Not sure what that means. :-) My environment:
For information only, as I don't think this matters:
|
Hello, i can add a little thing. |
Ditto. Works fine from the code lens links. But gets hung "Waiting for debugger to attach" if I try to debug from the TEST EXPLORER panel. |
Same here, and I can't repro the problem. Works from the codelens, but not from the panel. |
Maybe i got some interesing informations for that problem The Debug Test under the Fact don't work for me because i must use 32bit and omnisharp don' support it till now i think. To the attach problem. |
Just provide some workaround here |
Hi all-
I'm having an issue wherein when I try to debug a test, it just sits there with the waiting animation next to the test name. The debugger doesn't launch. Here's the output in the "Test Explorer" output window:
This is an nunit test which runs fine with 'dotnet test' at the console. It is in an sln which is not at the root directory. It is targetting dotnetcore3.1 and the csproj has the following references:
I'm running VSCode version:
I think this worked on a difference C# project... Am I doing something wrong? Or is this a bug?
The text was updated successfully, but these errors were encountered: