Skip to content

Improve suggestion completions for debug breakpoints #15160

@cdce8p

Description

@cdce8p

Is your feature request related to a problem? Please describe.
At the moment suggestion completions for debug breakpoint expressions are quite limited. As far as I can tell those only work for the first word (on a module level). A common simplified use case, at least for me, is the following example

class Test:
  var: int = 42

def main():
  # set breakpoint here
  ...

If I want to debug main for a specific value, I would set the breakpoint condition to

Test.var == 42

Describe the solution you'd like
It would be nice if pyright could support at least MemberAccess completions, since those are the most common.

Additional context
Screen Shot 2021-01-16 at 12 09 29

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions