This is a basic VS Code extension to play/try with debug adapters that support Debug Adapter Protocol (DAP). You can see the list of available DAP requests at Debug Adapter Protocol: Specification.
Making DAP requests
To make a request follow these steps:
Start a debugging session and stop the debugger (like at some breakpoint).
Open a new text document (Ctrl+N) and write the request body in it. For example, something like:
{
"command": "threads"
}
or (if the request needs arguments):
{
"command": "stackTrace",
"args": {
"threadId": 00000 // Replace with the actual thread ID.
}
}
Run the Send DAP Request command by pressing Ctrl+Shift+P and typing in "Send DAP Request".
If the request was valid (i.e., supported by the debug adapter) you see the response in a new text document:
You can just select the request body in the active text editor and run the Send DAP Request command. This will only send the selected text as the request body, and is useful when you want to have multiple requests in a single file/document.
Feedback
Please provide your feedbacks through submitting issues/PRs in the extension's GitHub repository. 🍏