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

貢獻者指南