
Product
Secure Your AI-Generated Code with Socket MCP
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
ruby-debug-passenger
Advanced tools
I wanted to use Phusion Passenger as an Apache module (not standalone) but still be able to use the interactive Ruby debugger.
Thanks to Adam Meehan I was able to do that, and I decided to make it into a reusable Gem.
This is been tested on:
and
and
It will probably work on other versions, but not on Rails 2.
It may or may not work on Ruby 1.8.
Add this to your Gemfile
if you are on Ruby 2.0
gem "byebug"
gem "ruby-debug-passenger"
or this if you are on Ruby 1.9
gem "debugger"
gem "ruby-debug-passenger"
or this if you are on Ruby 1.8, but it hasn't been tested!
gem "ruby-debug"
gem "ruby-debug-passenger"
Then run bundle install
to install it.
Add debugger
(for rubies under 2.0) or byebug
(for rubies from 2.0) anywhere
in your Ruby code that you want to invoke the debugger. Or in an ERB template,
add <% debugger %>
or <% byebug %>
instead.
Run rake debug
to restart Phusion Passenger and connect to the debugger. (You
will be prompted to reload the app in your browser.)
byebug
gem (David Rodríguez)debugger
gem (Kai Middleton) #1MIT License - see LICENSE.txt
.
FAQs
Unknown package
We found that ruby-debug-passenger demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Product
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.