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

Implement Attach debugger + picker #58

Merged
merged 20 commits into from
Nov 2, 2024
Merged

Conversation

RemcoSmitsDev
Copy link
Owner

@RemcoSmitsDev RemcoSmitsDev commented Oct 30, 2024

Screen.Recording.2024-10-30.at.20.37.57.mov

Todo

  • Rework how we and where we store the process id
    • Maybe store the process id on the config level
  • Shutdown debug client when reverse request startDebugging was handled
  • Clean up handle_debug_client_started
  • Show error message when adapter/client does not support attach

The client should always be there at this point.
While debugging an reverse request issue, the top level client did send terminated event with `restart: false` but we tried to restart the client resulting in the client never being cleaned up by us.

Because before this change we always assumed if we got a json value we are going to restart the client, which is wrong.

We no try to restart the client if:
- restart arg is a boolean and its true
- restart arg is a json value but no boolean
@Anthony-Eid
Copy link
Collaborator

Show error message when adapter/client does not support attach

It would be cool if we could show the error message directly within .zed/debug.json when a user creates their debug config.

@RemcoSmitsDev RemcoSmitsDev marked this pull request as ready for review November 2, 2024 21:23
@RemcoSmitsDev RemcoSmitsDev merged commit 65cd774 into debugger Nov 2, 2024
9 checks passed
@RemcoSmitsDev RemcoSmitsDev deleted the attach-debugger branch November 2, 2024 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants