Omnisharp-vscode: Support evaluating properties that require all threads to run

Created on 17 Oct 2018  路  4Comments  路  Source: OmniSharp/omnisharp-vscode

Steps to reproduce

  1. Debug the following program
  2. Evaluate Program.Test

Expected behavior

There is some way to evaluate this

Actual behavior

Debugger prints: The function evaluation requires all threads to run.

Program content

```C#
using System;

namespace clinew
{
class Program
{
static string Test
{
get
{
System.Diagnostics.Debugger.NotifyOfCrossThreadDependency();
return "Test";
}
}

    static void Main(string[] args)
    {
        Console.WriteLine("Hello World!");
    }
}

}
```

Debugger Feature Request

All 4 comments

I imagine we could implement this either by supporting some sort of format specifier (ex: Program.MyProperty,allthreads) or, for the watch/variables window, maybe we can add a context menu item.

Has this ever been implemented?

Currently in the Watch it just states "The function evaluation requires all threads to run."

In the Watch window there is a need to be able to evaluate functions that requires all threads to run. In Visual Studio we had the option to click the little "thread" button in the Watch window that would execute these functions.

No, not yet

Is there any update on this? I'm really not getting a wonderful experience while debugging. Wonder if there's workaround for this in the meantime?

Was this page helpful?
0 / 5 - 0 ratings