Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8629289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T08:45:55+00:00 2026-06-12T08:45:55+00:00

I started a blank project with methadone , an awesome framework for building command

  • 0

I started a blank project with methadone, an awesome framework for building command line apps. The only problem is that I am unable to debug from within the App class that’s in bin/my_app

The App class is a file created when you run methadone. Here’s how I’m trying to use pry

#!/usr/bin/env ruby

require 'optparse'
require 'methadone'
require 'my_app'
require 'pry'

class App
  include Methadone::Main
  include Methadone::CLILogging

  main do
     binding.pry    #  <= pry here
  end

  ...

When I run rake features I can tell the running process is trying to do something with pry since it pauses for a few seconds. I get the following error and then rake/cucumber is aborted.

process still alive after 3 seconds (ChildProcess::TimeoutError)

I can use pry just fine from the cucumber steps, rspec, or any other place, just not from anywhere in this App class.

One very interesting thing is that if I run my command line app from the console it WILL stop where pry is. It just wont pop into pry when using cucumber.

How can I get the app to work with pry when I’m running rake features?

Update

Sorry, I should clarify that methadone comes with aruba. So my cucumber scenario would look like this

When I successfully run `my_app arg1`

However, it WILL go into debug/pry if I run it with

bundle exec bin/my_app
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T08:45:57+00:00Added an answer on June 12, 2026 at 8:45 am

    Use pry-remote to connect to a pry session in the Aruba-managed subprocess.

    (Disclosure: I paired with @Dty to come to this solution)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I started a blank project in Visual Studio 2010 to write a C application.
I'm encountering a problem with my database connection. I started with a new blank
I've just started working on a project that will involve multiple people entering data
I originally started a project in Visual C++ 2010, which was an empty/Blank project.
I started a new blank console app project in VS (I am using VS2010),
Started Googling today to research implementing Zend_Translate in a Zend 1.6.x project i have
Started working on a new application this week that is running the latest rails
I've just started with C++, and maybe there's something that I'm doing wrong here,
I just started using Hibernate on a new project, and with my first entity,
I've recently started exploring using AJAX for a small project, and I've had reasonable

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.