dotnet / dotnet/vscode-csharp

Debugger: Some extension method evaluated in watch window would lead an error

Open
#523 3 comments 0 reactions 0 assignees View on GitHub
Bug Debugger Debugger-ExpressionEvaluation OmniSharp
Dominant language
TypeScript
Stars
3.1k
Forks
737
Avg merge
18h 40m
Merged PRs (30d)
31

Description

## Environment data

`dotnet --info` output:
VS Code version:
C# Extension version:
## Steps to reproduce

1 Set a breakpoint at line of " _appSettings = options.Value; " in HomeController.cs
2 Press F5 to start debugging
3 Add a expression " "Hello".AsParallel()" in watch window
4 Press Enter
## Expected behavior

The value should display with "This expression causes side effects and will not be evaluated"
## Actual behavior

The value displays with '
error CS1061: 'string' does not contain a definition for 'AsParallel' and no extension method 'AsParallel' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)'

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.