question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error processing 'variables' request. Unknown Error: 0x8000211d

See original GitHub issue

Issue Description

When I set a breakpoint and try to watch the value of a variable I get the following message Error processing 'variables' request. Unknown Error: 0x8000211d

Steps to Reproduce

dotnet new web --no-https -n api dotnet new sln dotnet sln add api

public class Startup
{
    public void ConfigureServices(IServiceCollection services)
    {
        services.AddSingleton(new JsonSerializerOptions()
        {
            PropertyNamingPolicy = JsonNamingPolicy.CamelCase,
            PropertyNameCaseInsensitive = true,
        });
    }

    public void Configure(IApplicationBuilder app, IWebHostEnvironment env, JsonSerializerOptions serializerOptions)
    {
        if (env.IsDevelopment())
        {
            app.UseDeveloperExceptionPage();
        }

        app.UseRouting();

        app.UseEndpoints(endpoints =>
        {
            endpoints.MapGet("/", async context =>
            {
                await context.Response.WriteAsync("Hello World!");
            });

            endpoints.MapPost("deposit", async context =>
            {
                var transaction = await context.Request.ReadFromJsonAsync<Transaction>();
                await context.Response.WriteAsync($"Hello World! {transaction.Id} {transaction.Amount} {transaction.Comment}");
            });
        });
    }
}

dotnet run --project api

Set Breakpoint to see the value of transaction

curl -X POST http://localhost:5000/deposit -H "Content-Type: application/json" -d '{"Id":102,"Amount":200,"Comment":"rent"}'

Expected Behavior

Expected to see an object with this values: ‘{“Id”:102,“Amount”:200,“Comment”:“rent”}’`

Actual Behavior

The variable show this value: Error processing 'variables' request. Unknown Error: 0x8000211d

Logs

OmniSharp log

Post the output from Output-->OmniSharp log here

C# log

Post the output from Output-->C# here

Environment information

VSCode version: 1.47.2 C# Extension: 1.22.1

Mono Information OmniSharp using global mono :6.10.0
Dotnet Information .NET SDK (reflecting any global.json): Version: 5.0.100-preview.7.20366.6 Commit: 0684df3a5b

Runtime Environment: OS Name: Mac OS X OS Version: 10.15 OS Platform: Darwin RID: osx.10.15-x64 Base Path: /usr/local/share/dotnet/sdk/5.0.100-preview.7.20366.6/

Host (useful for support): Version: 5.0.0-preview.7.20364.11 Commit: 53976d38b1

.NET SDKs installed: 3.1.200 [/usr/local/share/dotnet/sdk] 3.1.202 [/usr/local/share/dotnet/sdk] 3.1.300 [/usr/local/share/dotnet/sdk] 3.1.301 [/usr/local/share/dotnet/sdk] 3.1.302 [/usr/local/share/dotnet/sdk] 5.0.100-preview.7.20366.6 [/usr/local/share/dotnet/sdk]

.NET runtimes installed: Microsoft.AspNetCore.App 3.1.2 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.4 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.5 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.6 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 5.0.0-preview.7.20365.19 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.1.16 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.17 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.18 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.19 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.20 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.2 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.4 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.5 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.6 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 5.0.0-preview.7.20364.11 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET runtimes or SDKs: https://aka.ms/dotnet-download

Visual Studio Code Extensions
Extension Author Version
azure-account ms-vscode 0.8.11
csharp ms-dotnettools 1.22.1
file-downloader mindaro-dev 1.0.0
github-vscode-theme GitHub 1.1.3
gitlens eamodio 10.2.2
mindaro mindaro 0.1.120200723
mssql ms-mssql 1.9.0
python ms-python 2020.7.94776
remote-containers ms-vscode-remote 0.128.0
sonarlint-vscode SonarSource 1.16.0
vscode-dapr ms-azuretools 0.2.1
vscode-docker ms-azuretools 1.4.1
vscode-kubernetes-tools ms-kubernetes-tools 1.2.1
vscode-postgresql ms-ossdata 0.3.0
vscode-sanddance msrvida 3.0.0
vscode-solution-explorer fernandoescolar 0.3.10
vscode-sqlite alexcvzz 0.8.2
vscode-yaml redhat 0.9.1
vscodeintellicode VisualStudioExptTeam 1.2.9
vsliveshare ms-vsliveshare 1.0.2478
vsliveshare-audio ms-vsliveshare 0.1.85

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
gregg-miskellycommented, Nov 10, 2020

@eestein Thanks. We will work with the VS for Mac team to get the fix deployed there too.

2reactions
gregg-miskellycommented, Sep 2, 2020

This is a bug with our handling of decimal types. The issue is already fixed internally, but we haven’t pushed it to the extension yet. We were about to insert a new build that has the fix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Debugger fails to display variables values
I'm unable to view variables values during debug mode, getting a “Error processing 'variables' request. Unknown Error: 0x8000211d” message.
Read more >
C#, visual studio code, debugger, Error processing ...
Error processing 'configurationDone' request. Unknown Error: 0x89720010. What is it and why it is being displayed? Many thanks in advance.
Read more >
Debugger Error "Unknown Error: 0x800700c1" : r/vscode
I am getting an error "Unknown Error: 0x800700c1" when I run the debugger, so I feel like I am doing something wrong.
Read more >
an unknown error occurred while processing the request on ...
see this: http://stackoverflow.com/questions/7881470/sys-webforms-pagerequestmanagerservererrorexception-an-unknown-error-occurred-w[^].
Read more >
NET and COM the complete interoperability guide.
Handling Variable-Length Structures and Signatures. ... contains a list that completely defines how HRESULT values (COM error codes) are transformed into .
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found