mirror of
https://github.com/go-delve/delve.git
synced 2025-10-27 20:23:41 +08:00
Documentation/api/dap/README: add dlv dap usage link (#2957)
Co-authored-by: Polina Sokolova <polinasok@users.noreply.github.com>
This commit is contained in:
@ -3,7 +3,7 @@
|
|||||||
Delve exposes a [DAP](https://microsoft.github.io/debug-adapter-protocol/overview) API interface.
|
Delve exposes a [DAP](https://microsoft.github.io/debug-adapter-protocol/overview) API interface.
|
||||||
|
|
||||||
This interface is served over a streaming TCP socket using `dlv` server in one of the two headless modes:
|
This interface is served over a streaming TCP socket using `dlv` server in one of the two headless modes:
|
||||||
* `dlv dap` - starts a single-use DAP-only server that waits for a client to specify launch/attach configuration for starting the debug session.
|
* [`dlv dap`](../../usage/dlv_dap.md) - starts a single-use DAP-only server that waits for a client to specify launch/attach configuration for starting the debug session.
|
||||||
* `dlv --headless <command> <debugee>` - starts a general server, enters a debug session for the specified debuggee and waits for a [JSON-RPC](../json-rpc/README.md) or a [DAP](https://microsoft.github.io/debug-adapter-protocol/overview) client to begin interactive debugging. Can be used in multi-client mode with the following options:
|
* `dlv --headless <command> <debugee>` - starts a general server, enters a debug session for the specified debuggee and waits for a [JSON-RPC](../json-rpc/README.md) or a [DAP](https://microsoft.github.io/debug-adapter-protocol/overview) client to begin interactive debugging. Can be used in multi-client mode with the following options:
|
||||||
* `--accept-multiclient` - use to support connections from multiple clients
|
* `--accept-multiclient` - use to support connections from multiple clients
|
||||||
* `--continue` - use to resume debuggee execution as soon as server session starts
|
* `--continue` - use to resume debuggee execution as soon as server session starts
|
||||||
|
|||||||
Reference in New Issue
Block a user