Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugger should have a UI gesture to evaluate properties that require all threads #6959

Open
gregg-miskelly opened this issue Mar 9, 2024 · 1 comment

Comments

@gregg-miskelly
Copy link
Contributor

Steps to reproduce

  1. Debug the following program
  2. 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!");
        }
    }
}
@gregg-miskelly
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant