theia icon indicating copy to clipboard operation
theia copied to clipboard

[debug] Wait for debugger capabilities initialization before breakpoint update

Open vakosta opened this issue 3 years ago • 2 comments

What it does

Fixes: https://github.com/eclipse-theia/theia/issues/11606 Fix an issue where debugger doesn't send breakpoints on first run.

How to test

  1. Open any project in Theia.
  2. Switch to the debugger tab.
  3. Add function breakpoint by clicking on "Add Function Breakpoint" button.
  4. Run debugger.
  5. Make sure that debugger wait for capability initialization and catches breakpoints correctly.

Review checklist

Reminder for reviewers

vakosta avatar Aug 25 '22 09:08 vakosta

@Vakosta I'm having trouble to test this successfully, since the Node.js debugger doesn't support function breakpoints at all. What language/extension are you using to test this?

msujew avatar Sep 09 '22 12:09 msujew

@msujew Language and extension are internal commercial development in the company, where I work. Unfortunately, I can't name them, because they are under NDA.

vakosta avatar Sep 09 '22 13:09 vakosta

@msujew as an author of another debug adapter (https://marketplace.visualstudio.com/items?itemName=EvilBeaver.oscript-debug) I think this is a good fix and capabilities now should work better. What else should be done to make this PR merged?

EvilBeaver avatar Nov 15 '22 20:11 EvilBeaver

@vince-fugnitto Do you think it's alright to include this change in the upcoming release or should we merge it shortly afterwards to catch potential issues?

@msujew I'd wait for right after the release since we didn't get the opportunity to test the actual functionality of the change as no plugin was provided.

vince-fugnitto avatar Nov 23 '22 12:11 vince-fugnitto

@vince-fugnitto Alright, sounds good to me 👍

msujew avatar Nov 23 '22 13:11 msujew