Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Child sessions that finish launching after their parent exits can break the debug UI #93592

Closed
connor4312 opened this issue Mar 27, 2020 · 3 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues verified Verification succeeded
Milestone

Comments

@connor4312
Copy link
Member

See microsoft/vscode-js-debug#390 (comment): You should be able to reproduce by following the verification instructions with a js-debug-nightly version <= 2020.3.2517

@connor4312 connor4312 added bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues labels Mar 27, 2020
@connor4312 connor4312 added this to the Backlog milestone Mar 27, 2020
@isidorn
Copy link
Contributor

isidorn commented Mar 27, 2020

I see you were deep debugging into this. Do you have a proposed solution? How should the VS Code UI behave?

@connor4312
Copy link
Member Author

connor4312 commented Mar 27, 2020

Perhaps two things:

  • Double check the parent session after returning from initialize (maybe launchAndAttach to?). Iff it's present and in State.Inactive, then terminate it and reject the request with a 'canceled' error

await session.initialize(dbgr!);

  • For the specific problem, it's probably safe to ignoreErrors in .expand. I see we do this elsewhere in the file. The set is cleared after that function runs, so ignoring problems here shouldn't have negative effects on state elsewhere.

this.parentSessionToExpand.forEach(s => this.tree.expand(s));

@isidorn
Copy link
Contributor

isidorn commented Mar 27, 2020

These two are great proposals. I can look into them, thus assigning to March.
If you want a PR is also welcome, if not I will tackle on Monday.

@isidorn isidorn modified the milestones: Backlog, March 2020 Mar 27, 2020
@isidorn isidorn closed this as completed in b789f6c Apr 1, 2020
@connor4312 connor4312 added the verified Verification succeeded label Apr 2, 2020
@github-actions github-actions bot locked and limited conversation to collaborators May 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

2 participants