dotnet / dotnet/vscode-csharp

Debugger: The 'debug test' is not disabled in debugging

Open
#1,421 1 comment 0 reactions 0 assignees View on GitHub
Bug Debugger OmniSharp Test
Dominant language
TypeScript
Stars
3.1k
Forks
737
Avg merge
18h 40m
Merged PRs (30d)
31

Description

## Environment data
`dotnet --info` output:
Product Information:
`Version: 1.0.1`
`Commit SHA-1 hash: 005db40cd1`
Runtime Environment:
`OS Name: Ubuntu`
`OS Version: 16.10`
`OS Platform: Linux`
`RID: Ubuntu.16.10-x64`
`Base Path: /usr/share/dotnet/sdk/1.0.1`

VS Code version: v1.11.2
C# Extension version: v.1.9.0

## Steps to reproduce
1. Open attached folder with VSCode;
[test_xunit.zip](https://github.com/OmniSharp/omnisharp-vscode/files/950510/test_xunit.zip)
2. Set a breakpoint at the line of 11 in UnitTest1.cs;
3. Debug test and wait for break mode;

## Expected behavior
The `debug test` should be disabled.

## Actual behavior
The `debug test` is not disabled. And when I click `debug test` again, pop an error message as following:
![image](https://cloud.githubusercontent.com/assets/20184778/25323823/9da14b10-28f4-11e7-8ec5-6331ecf329cd.png)

## Investigation
1. In VS, `Run Tests`, `Debug Tests` and `Restart` was be disabled if the project is being debugged.
2. In VSCode, click `Run Tests` after step #3, .NET Test Log as following:
![image](https://cloud.githubusercontent.com/assets/20184778/25324506/c6c2aec2-28f8-11e7-9b4c-559b911164e1.png)
3. In VSCode, click `Restart` after step #3, the project run to end. Could you please help me to confirm if it is expected? OmniSharp Log as following:
![image](https://cloud.githubusercontent.com/assets/20184778/25324604/49dfd802-28f9-11e7-83c4-c33ee262dacc.png)
4. If `debug test` can not be disabled, can you improve the prompt? E.g: Failed to start debugger: Is being used by another process.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.