vscode-csharp
vscode-csharp copied to clipboard
Debugger should have a UI gesture to evaluate properties that require all threads
Steps to reproduce
- Debug the following program
- Evaluate
Program.Test
in the watch window
Expected behavior
There should be a UI gesture to evaluate the expression
Actual behavior
The only way to evaluate Program.Test
is to evaluate Program.Test, run-all-threads
from the Debug Console (NOTE: This requires a not-yet-released version of the C# extension).
Program content
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!");
}
}
}
Resolving this issue would require working with VS Code to either enhance the watch window context menu extensibility or to support the notion of evaluation results that indicate they must be manually refreshed by clicking a button.