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

[lldb-dap] lldb-dap server mode management improvements #129283

Open
ashgti opened this issue Feb 28, 2025 · 1 comment
Open

[lldb-dap] lldb-dap server mode management improvements #129283

ashgti opened this issue Feb 28, 2025 · 1 comment
Labels

Comments

@ashgti
Copy link
Contributor

ashgti commented Feb 28, 2025

Filing this to circle back to improving the lldb-dap server mode management from the VSCode extension.

Some ideas that are not set in stone:

  • The server could shut itself down if the process gets a low memory warning and there are no active clients.
  • The server could have an idle timeout and shutdown if there are not active clients after some configurable period.
  • The extension could alert the user to unexpected crashes or exits.
  • The extension could have commands to manually start / stop the server.
  • We could run one server per host instead of the default behavior of one per-window. Its possible to spawn the server in a different process group than the extension host process and advertise the connection parameters in a different way (e.g. the server can use a unix socket and place the socket in ~/.lldb-dap-sock then if the socket file exists we could use it across extension hosts).
@ashgti
Copy link
Contributor Author

ashgti commented Feb 28, 2025

#129332 Implements a memory monitor on macOS and linux to trigger SBDebugger::MemoryPressureDetected() which should help by removing unreferenced symbols.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant