question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve suggestion completions for debug breakpoints

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
luabudcommented, Mar 10, 2021

Thanks for the suggestion! We talked about it with the team and we have unfortunately decided we will not be moving forward with this idea. We think there isn’t an enough widespread need for this to warrant the maintenance cost for the feature.

0reactions
jakebaileycommented, Jan 19, 2021

Sorry, the above isn’t at all about whether or not this should work, but trying to figure out how this is working at the moment and how it is supposed to fit into the language server specification, as things seem to be behaving strangely and we don’t get enough info to properly handle things.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Discover breakpoint improvements - WWDC21 - Videos
Breakpoints can help you debug issues by allowing you to pause and inspect problems in the middle of a process. Discover the latest......
Read more >
Debugger/Diagnostics Tips & Tricks in Visual Studio 2019
Check out how you can use the debugger and profiling tools in Visual Studio 2019 more effectively on their projects via demos and...
Read more >
Tracepoints: Debug with less clutter - Visual Studio Blog
If so, then Tracepoints are a great tool you can use in Visual Studio. This feature allows you to log desired information without...
Read more >
ATF Debugging in San Diego - ServiceNow Developers
For ATF, simply right-click on the step (in the Test Steps related list) where you want the test to pause and choose Add/Remove...
Read more >
Tips and Tricks (JDT) - IBM
Content assist provides you with a list of suggested completions for partially entered strings. In the Java editor press Ctrl+Space or use Edit...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found