Manage Debug Sessions
debug_sessionsList, create, or close isolated DAP debug sessions so concurrent debugging tools can route work by sessionId without relying on a global session selector.
Instructions
Use this tool to list, create, or close isolated DAP sessions before routing other debugger tools with sessionId. Omit sessionId on normal debug tools only when the backward-compatible default session is intended; do not use a global session selector for concurrent work.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | Management action: list current sessions, create a new isolated session, or close one session. | list |
| sessionId | No | Requested ID for create, or target ID for close. Omit on create to generate a bounded session-N identifier. | |
| terminateDebuggee | No | For close only: request debugger termination of the live target before resetting/removing the session. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| removed | No | ||
| sessions | Yes | ||
| sessionId | No | ||
| maxSessions | Yes | ||
| defaultSessionId | Yes |