-
Notifications
You must be signed in to change notification settings - Fork 676
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
Strange error while attempting to debug test #1960
Comments
@akshita31 You've been looking at unit testing. Can you take a look? |
@firelizzard18 This may be problem with the .debugger folder in your install directory. Could you try deleting the .debugger folder and the install.Lock file in your .vscode/extensions/ms-vscode.csharp-1.13.1 directory and then restarting vscode? (The path to the .vscode directory can be seen in the Omnisharp Log) Or alternatively you could try uninstalling and then reinstalling the extension. |
@akshita31 maybe I am missing something, but the crash is in OmniSharp (here). What do you think might be going wrong with the debugger? |
@firelizzard18 can you debug other things? (ex: create a new console app ( |
@akshita31 I will try to discover what I was working on when I found this error. @gregg-miskelly I have been able to debug other things in the past. I seem to be getting all kinds of interesting issues when attempting to debug .NET Framework projects. I've reinstalled the extension already, so if the |
I've also been switching between Visual Studio and VSCode, as the former occasionally is able to debug my projects. |
I found that updating to the 64bit version of VSCode solved the problem. Not sure this was the cause or in doing so, it cleared up some other files or something that was the cause. |
@firelizzard18 Can you provide the project where this error occurs, to help debug. |
@akshita31 The project I was working on is owned by my employer and not open source :( |
@firelizzard18 Are you able to perform "Run Test" successfully ? Could you post the Omnisharp log here ? |
I can confirm that a colleague who also had this problem solved it by uninstalling 32bit and installing 64bit version of VSCode. |
Thanks @Adam-Pond. @firelizzard18 Did you try this solution ? |
Thanks for the insight @Adam-Pond. @gregg-miskelly, would the bitness of VS Code affect the bitness of the debugger used? I'm curious since the debugger does not support Windows 32-bit. |
No. We always use a 64-bit vsdbg. |
@akshita31 I'm not sure I can reproduce this issue. My working environment has changed significantly since I created this issue, and OmniSharp-VSCode no longer works at all for me. Once #2171 is merged and #1694 resolved, I'll try again. |
Closing as a lot has changed with testing and debugging since this issue was opened. Please reopen if this is still a problem and provide updated details. |
dotnet --info
output:I'm having trouble debugging a test in VSCode. I deleted
bin
andobj
and tried debugging via code lens again (i.e. clicking on "debug test" above the method) and got the following message:My project:
The text was updated successfully, but these errors were encountered: