Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
github.com/castwide/vscode-ruby-debug
A native Ruby debugger using the Debug Adapter Protocol.
This extension is still in early development. Please report bugs at https://github.com/castwide/vscode-ruby-debug.
Ruby Debug requires the readapt
gem. Install it from the command line:
gem install readapt
Or add it to your project's Gemfile:
gem 'readapt', group :development
Readapt requires Ruby >= 2.2.
If you're not familiar with VS Code's debugger, see the debugger documentation for more information.
F5
keyboard shortcut).
(If you don't have a launch configuration in the current workspace, the extension will debug the active file.)Click the dropdown at the top of the Debug view and click "Add Configuration."
The simplest configuration is "Launch." It will start the debugger with a Ruby file in your workspace. The default behavior is to prompt the user for a file. You can set the program
option to a specific file instead; e.g., "program": "${workspaceFolder}/path/to/your/file.rb"
.
The debugger can also launch external Ruby executables. The debug configuration snippets include an example for debugging RSpec.
Launch configurations include a useBundler
option. If it's true
, the debugger will start with bundle exec readapt serve
before launching the program.
Note that readapt
must be included in your Gemfile for useBundler
to work.
The following snippets demonstrate some common launch configurations you can add to launch.json
.
{
"type": "ruby-debug",
"request": "launch",
"name": "Active File",
"program": "${file}",
"programArgs": [],
"useBundler": false
}
{
"type": "ruby-debug",
"request": "launch",
"name": "RSpec (Active File)",
"program": "rspec",
"programArgs": [
"-I",
"${workspaceFolder}",
"${file}"
],
"useBundler": false
}
{
"type": "ruby-debug",
"request": "launch",
"name": "Rails",
"program": "${workspaceFolder}/bin/rails",
"programArgs": ["s"],
"useBundler": true
}
Note: Make sure the readapt gem is included in your Gemfile, e.g.:
gem 'readapt', group: :development
FAQs
Unknown package
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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.