dotnet/roslyn

Do not get access to "this" in breakpoint conditions for expression properties/methods

开放

#23,892 创建于 2017年12月21日

 (0 条评论) (0 个反应) (0 位负责人)C# (4,257 个派生)batch import
Area-InteractiveBugInteractive-Debugginghelp wanted

仓库指标

星标
 (20,414 个星标)
PR 合并指标
 (平均合并 6天 17小时) (30 天内合并 256 个 PR)

描述

Version Used: Version 15.6.0 Preview 1.1 [27217.0.d15.6]

Steps to Reproduce:

    class Program
    {
        private readonly string _foo;

        public string Foo => _foo; // Location 1

        public string FooBar() => _foo; // Location 2
    }
  1. Set a breakpoint on Location 1 and Location 2
  2. Right-click breakpoint and choose Conditions
  3. Check conditions and in expression text box, type this.

Expected Behavior: For completion window to open and get intellisense for members of the class (ie _foo)

Actual Behavior: Actual, completion window doesn't open. If you force it open CTRL+Space there's no access to "this" members

贡献者指南