[all-commits] [llvm/llvm-project] acb38c: [lldb-dap] Add command line option `--connection-t...

Roy Shi via All-commits all-commits at lists.llvm.org
Wed Sep 10 08:21:35 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: acb38c8be7152aa26e6958752499619eeeeddd1c
      https://github.com/llvm/llvm-project/commit/acb38c8be7152aa26e6958752499619eeeeddd1c
  Author: Roy Shi <royitaqi at users.noreply.github.com>
  Date:   2025-09-10 (Wed, 10 Sep 2025)

  Changed paths:
    M lldb/packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py
    M lldb/test/API/tools/lldb-dap/server/TestDAP_server.py
    M lldb/tools/lldb-dap/Options.td
    M lldb/tools/lldb-dap/README.md
    M lldb/tools/lldb-dap/package.json
    M lldb/tools/lldb-dap/src-ts/debug-configuration-provider.ts
    M lldb/tools/lldb-dap/src-ts/lldb-dap-server.ts
    M lldb/tools/lldb-dap/tool/lldb-dap.cpp

  Log Message:
  -----------
  [lldb-dap] Add command line option `--connection-timeout` (#156803)

# Usage

This is an optional new command line option to use with `--connection`.

```
--connection-timeout <timeout>    When using --connection, the number of seconds to
        wait for new connections after the server has started and after all clients
        have disconnected. Each new connection will reset the timeout. When the
        timeout is reached, the server will be closed and the process will exit.
        Not specifying this argument or specifying non-positive values will cause
        the server to wait for new connections indefinitely.
```

A corresponding extension setting `Connection Timeout` is added to the
`lldb-dap` VS Code extension.

# Benefits

Automatic release of resources when lldb-dap is no longer being used
(e.g. release memory used by module cache).

# Test

See PR.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list