
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@vscode/debugprotocol
Advanced tools
Npm module with declarations for the Visual Studio Code debug protocol
@vscode/debugprotocol is a package that provides the Debug Adapter Protocol (DAP) used by Visual Studio Code and other IDEs to facilitate communication between the editor and a debugger. It defines a set of requests and events that allow for debugging operations such as setting breakpoints, stepping through code, and inspecting variables.
Initialize Request
The initialize request is the first message sent from the client to the debug adapter. It is used to configure the debug session and exchange capabilities. The code sample shows how to send an initialize request with various configuration options.
{ "command": "initialize", "arguments": { "clientID": "vscode", "clientName": "Visual Studio Code", "adapterID": "node", "pathFormat": "path", "linesStartAt1": true, "columnsStartAt1": true, "supportsVariableType": true, "supportsVariablePaging": true, "supportsRunInTerminalRequest": true } }
Set Breakpoints Request
The setBreakpoints request allows the client to set breakpoints in the source code. The code sample demonstrates how to specify breakpoints at specific lines in a given file.
{ "command": "setBreakpoints", "arguments": { "source": { "path": "/path/to/file.js" }, "breakpoints": [ { "line": 10 }, { "line": 20 } ] } }
Stack Trace Request
The stackTrace request retrieves the call stack for a given thread. This is useful for understanding the current execution context. The code sample shows how to request the stack trace for a specific thread.
{ "command": "stackTrace", "arguments": { "threadId": 1 } }
vscode-debugadapter is a package that provides a base implementation for building debug adapters that communicate using the Debug Adapter Protocol. It is similar to @vscode/debugprotocol but focuses on providing a framework for implementing the server side of the protocol.
node-inspect is a command-line debugger for Node.js programs. It provides similar debugging capabilities but is specific to Node.js and does not use the Debug Adapter Protocol. It is more of a standalone tool compared to the protocol-focused @vscode/debugprotocol.
chrome-debug-protocol is a package that implements the Chrome DevTools Protocol, which is used for debugging web applications in Chrome. While it serves a similar purpose of enabling debugging, it is specific to web applications and the Chrome browser, unlike the more general-purpose @vscode/debugprotocol.
This npm module contains declarations for the json-based Visual Studio Code debug protocol.
As of August 2018 the change history of the Debug Adapter Protocol lives on the Debug Adapter Protocol web site.
FAQs
Npm module with declarations for the Visual Studio Code debug protocol
The npm package @vscode/debugprotocol receives a total of 185,198 weekly downloads. As such, @vscode/debugprotocol popularity was classified as popular.
We found that @vscode/debugprotocol demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.