Docker Compose service as remote interpreter can't install debugger gems

I'm using:

RubyMine 2023.1
Build #RM-231.8109.174, built on March 28, 2023
Runtime version: 17.0.6+10-b829.5 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 13.3.1

I have configured a remote interpreter using Docker-compose and I'm able to run the application.

When I try to debug it RubyMine ask me to install the debug gems but it fails with the following errors:

Failed to Install Gems. Following gems were not installed: /Users/my-user/Library/Application Support/JetBrains/Toolbox/apps/RubyMine/ch-0/231.8109.174/RubyMine.app/Contents/plugins/ruby/rb/gems/ruby-debug-ide-3.0.0.beta.10.gem: Could not find a valid gem 'ruby-debug-ide-3.0.0.beta.10.gem' (>= 0) in any repository /Users/my-user/Library/Application Support/JetBrains/Toolbox/apps/RubyMine/ch-0/231.8109.174/RubyMine.app/Contents/plugins/ruby/rb/gems/debase-3.0.0.beta.6.gem: Could not find a valid gem 'debase-3.0.0.beta.6.gem' (>= 0) in any repository

How can I solve it?

 

 

2

I have had zero success debugging Ruby apps (Rails 6 & 7) in docker containers that I spin up with docker-compose.

I've tried all of the RubyMine guides from JetBrains and whatever I could find online, but nothing has worked so far.

Very frustrating.

0

Sorry to hear about your experience. Would it be possible to share your Docker configuration files and Gemfile + Gemfile.lock?

0

After reading another post I removed a debase gem that I had in my gemfile and it only fails on installing ruby-debug-ide:

Cannot start debugger. Gem 'ruby-debug-ide' is not installed or its executable script 'rdebug-ide' does not exist.

docker-compose.yml

services:
db:
image: postgres:14.7
volumes:
- db-data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: postgres
LC_CTYPE: "en_US.UTF-8"
LC_ALL: "en_US.UTF-8"
LC_NUMERIC: "en_US.UTF-8"
LANG: "en_IT.UTF-8"
ports:
- "5432:5432"

redis:
image: redis:latest
volumes:
- cache:/data
web:
image: mamaclean_dev
command: tail -f /dev/null
environment:
HEROKU_REDIS_BLUE_URL: "redis://redis:6379/1"
REDIS_URL: "redis://redis:6379/1"
volumes:
- .:/app
ports:
- "3000:3000"
depends_on:
- db
- redis
sidekiq:
image: mamaclean_dev
command: sidekiq
environment:
HEROKU_REDIS_BLUE_URL: "redis://redis:6379/1"
REDIS_URL: "redis://redis:6379/1"
volumes:
- .:/app
depends_on:
- db
- redis
- web
volumes:
db-data:
external: true
cache:
external: true

Gemfile

source 'https://rubygems.org'
ruby '3.1.2'

gem 'dotenv-rails', groups: [:development]

gem 'rails', '> 6.1.0'
gem 'sprockets-rails'
gem 'pg'
gem 'oj'
gem 'barnes'
gem 'aws-sdk-rails'
gem 'aws-sdk-s3'
gem 'parallel'
gem 'scout_apm'
gem 'puma'
gem 'sprockets', '<4'
gem 'net-smtp'
gem 'net-pop'
gem 'net-imap'
gem 'matrix'
gem 'prime'
gem 'image_processing', '>= 1.2'
gem 'parser'
gem 'zendesk_api'
gem 'analytics-ruby', '~> 2.0.0', :require => 'segment/analytics'
gem 'webpacker', '~> 6.0.0-rc.6'
gem 'browser'
gem 'rqrcode', '~> 2.0'
gem 'rmagick'
gem 'rabl'
gem 'devise', git: 'https://github.com/heartcombo/devise.git'
gem 'devise_sms_activable', git: 'https://github.com/mamaclean/devise_sms_activable.git'
gem 'omniauth-facebook'
gem 'omniauth-google-oauth2'
gem 'omniauth-rails_csrf_protection'
gem 'cancancan'
gem 'money'
gem 'activemerchant'
gem 'sidekiq'
gem 'sidecloq'
gem 'sinatra'
gem 'airbrake'
gem 'prawn'
gem 'prawnto_2', :require => 'prawnto'
gem 'prawn-table'
gem 'barby'
gem 'chunky_png'
gem 'google-api-client'
gem 'activeadmin', git: 'https://github.com/activeadmin/activeadmin.git'
gem 'active_admin_sidebar', git: 'https://github.com/activeadmin-plugins/active_admin_sidebar.git'
gem "active_admin_plain_datetime_picker", git: "https://github.com/mamaclean/active_admin_plain_datetime_picker.git", branch: 'main'
gem 'inherited_resources'
gem 'paper_trail'
gem 'roboto'
gem 'sitemap_generator'
gem 'faraday'
gem 'icalendar'
gem 'stripe', git: 'https://github.com/stripe/stripe-ruby'
gem 'iron_bank', git: 'https://github.com/mamaclean/iron_bank.git'
gem 'fattureincloud_ruby_sdk'
gem 'rack-cors', :require => 'rack/cors'
gem 'rack-attack'
gem 'pact_broker-client'
gem 'pact'
gem 'redis', :require => %w[redis redis/connection/hiredis]
gem 'hiredis'
gem 'redis-session-store'
gem 'fcm'
gem "stimulus_reflex", git: 'https://github.com/mamaclean/stimulus_reflex'
gem 'view_component'
gem 'view_component_reflex'
# Reduces boot times through caching; required in config/boot.rb
gem 'bootsnap', require: false
gem "tailwindcss-rails", "~> 2.0"

group :development, :test do
gem 'memory_profiler'
# gem 'binding_of_caller'
gem 'RedCloth'
gem 'guard'
gem 'rb-fsevent'
gem 'guard-rspec'
gem 'terminal-notifier-guard'
gem 'rspec-rails'
gem 'rspec'
gem 'rspec-core'
gem 'rspec-expectations'
gem 'rspec-mocks'
end

group :development do
gem 'guard-livereload'
gem 'derailed_benchmarks'
gem 'stackprof'
gem 'better_errors'
gem 'letter_opener'
gem 'redcarpet'
gem 'seed_dump'
gem 'rubocop'
gem 'rubocop-rails'
gem 'foreman'
end

group :test do
gem 'turn', :require => false
gem 'capybara'
gem 'selenium-webdriver'
gem 'factory_bot_rails'
gem 'bourne'
gem 'database_cleaner'
gem 'nokogiri'
gem 'shoulda-matchers'
gem 'launchy'
gem 'guard-spork'
gem 'spork'
gem 'ci_reporter'
gem 'simplecov'
end

Gemfile.lock

GIT
  remote: https://github.com/activeadmin-plugins/active_admin_sidebar.git
  revision: 18b38b0586192cc0acab70b914b3536ca5be04de
  specs:
    active_admin_sidebar (2.0.0)
      activeadmin

GIT
  remote: https://github.com/activeadmin/activeadmin.git
  revision: d0d4fa295efd7659bd05a32ff142c32c9d662656
  specs:
    activeadmin (2.13.1)
      arbre (~> 1.2, >= 1.2.1)
      formtastic (>= 3.1, < 5.0)
      formtastic_i18n (~> 0.4)
      inherited_resources (~> 1.7)
      jquery-rails (~> 4.2)
      kaminari (~> 1.0, >= 1.2.1)
      railties (>= 6.1, < 7.1)
      ransack (>= 2.1.1, < 4)

GIT
  remote: https://github.com/heartcombo/devise.git
  revision: 4b72064bfcf076478c5c87818b9536b203f6584f
  specs:
    devise (4.9.2)
      bcrypt (~> 3.0)
      orm_adapter (~> 0.1)
      railties (>= 4.1.0)
      responders
      warden (~> 1.2.3)

GIT
  remote: https://github.com/mamaclean/active_admin_plain_datetime_picker.git
  revision: 79fec34858203197aef32c4a1f1200e741a656e2
  branch: main
  specs:
    active_admin_plain_datetime_picker (0.1.0)
      activeadmin (>= 1.1, < 3.a)

GIT
  remote: https://github.com/mamaclean/devise_sms_activable.git
  revision: a84eb8a7420d2536cdc9bc2743b00fc6e4feaed2
  specs:
    devise_sms_activable (0.0.9)
      devise (>= 1.1.0)
      rails (>= 3.0.0)

GIT
  remote: https://github.com/mamaclean/iron_bank.git
  revision: 887c21e5316dd52166ad0843934e0049ac085388
  specs:
    iron_bank (0.0.3)
      activesupport
      httparty
      oauth2

GIT
  remote: https://github.com/mamaclean/stimulus_reflex
  revision: 17f5f9b2d20f88daa33f4c97efbdab5b428f78a1
  specs:
    stimulus_reflex (3.5.0.rc2)
      actioncable (>= 5.2, < 8)
      actionpack (>= 5.2, < 8)
      actionview (>= 5.2, < 8)
      activesupport (>= 5.2, < 8)
      cable_ready (>= 5.0.0.rc2)
      nokogiri (~> 1.0)
      rack (>= 2, < 4)
      railties (>= 5.2, < 8)
      redis (>= 4.0, < 6.0)

GIT
  remote: https://github.com/stripe/stripe-ruby
  revision: 5fb10bdfd3243135b26f9bddd9bc841c8f74c480
  specs:
    stripe (8.5.0)

GEM
  remote: https://rubygems.org/
  specs:
    RedCloth (4.3.2)
    actioncable (7.0.4.3)
      actionpack (= 7.0.4.3)
      activesupport (= 7.0.4.3)
      nio4r (~> 2.0)
      websocket-driver (>= 0.6.1)
    actionmailbox (7.0.4.3)
      actionpack (= 7.0.4.3)
      activejob (= 7.0.4.3)
      activerecord (= 7.0.4.3)
      activestorage (= 7.0.4.3)
      activesupport (= 7.0.4.3)
      mail (>= 2.7.1)
      net-imap
      net-pop
      net-smtp
    actionmailer (7.0.4.3)
      actionpack (= 7.0.4.3)
      actionview (= 7.0.4.3)
      activejob (= 7.0.4.3)
      activesupport (= 7.0.4.3)
      mail (~> 2.5, >= 2.5.4)
      net-imap
      net-pop
      net-smtp
      rails-dom-testing (~> 2.0)
    actionpack (7.0.4.3)
      actionview (= 7.0.4.3)
      activesupport (= 7.0.4.3)
      rack (~> 2.0, >= 2.2.0)
      rack-test (>= 0.6.3)
      rails-dom-testing (~> 2.0)
      rails-html-sanitizer (~> 1.0, >= 1.2.0)
    actiontext (7.0.4.3)
      actionpack (= 7.0.4.3)
      activerecord (= 7.0.4.3)
      activestorage (= 7.0.4.3)
      activesupport (= 7.0.4.3)
      globalid (>= 0.6.0)
      nokogiri (>= 1.8.5)
    actionview (7.0.4.3)
      activesupport (= 7.0.4.3)
      builder (~> 3.1)
      erubi (~> 1.4)
      rails-dom-testing (~> 2.0)
      rails-html-sanitizer (~> 1.1, >= 1.2.0)
    activejob (7.0.4.3)
      activesupport (= 7.0.4.3)
      globalid (>= 0.3.6)
    activemerchant (1.126.0)
      activesupport (>= 4.2)
      builder (>= 2.1.2, < 4.0.0)
      i18n (>= 0.6.9)
      nokogiri (~> 1.4)
    activemodel (7.0.4.3)
      activesupport (= 7.0.4.3)
    activerecord (7.0.4.3)
      activemodel (= 7.0.4.3)
      activesupport (= 7.0.4.3)
    activestorage (7.0.4.3)
      actionpack (= 7.0.4.3)
      activejob (= 7.0.4.3)
      activerecord (= 7.0.4.3)
      activesupport (= 7.0.4.3)
      marcel (~> 1.0)
      mini_mime (>= 1.1.0)
    activesupport (7.0.4.3)
      concurrent-ruby (~> 1.0, >= 1.0.2)
      i18n (>= 1.6, < 2)
      minitest (>= 5.1)
      tzinfo (~> 2.0)
    addressable (2.8.3)
      public_suffix (>= 2.0.2, < 6.0)
    airbrake (13.0.3)
      airbrake-ruby (~> 6.0)
    airbrake-ruby (6.2.1)
      rbtree3 (~> 0.6)
    analytics-ruby (2.0.13)
    ansi (1.5.0)
    arbre (1.5.0)
      activesupport (>= 3.0.0, < 7.1)
      ruby2_keywords (>= 0.0.2, < 1.0)
    ast (2.4.2)
    awesome_print (1.9.2)
    aws-eventstream (1.2.0)
    aws-partitions (1.742.0)
    aws-record (2.10.1)
      aws-sdk-dynamodb (~> 1.18)
    aws-sdk-core (3.171.0)
      aws-eventstream (~> 1, >= 1.0.2)
      aws-partitions (~> 1, >= 1.651.0)
      aws-sigv4 (~> 1.5)
      jmespath (~> 1, >= 1.6.1)
    aws-sdk-dynamodb (1.83.0)
      aws-sdk-core (~> 3, >= 3.165.0)
      aws-sigv4 (~> 1.1)
    aws-sdk-kms (1.63.0)
      aws-sdk-core (~> 3, >= 3.165.0)
      aws-sigv4 (~> 1.1)
    aws-sdk-rails (3.7.1)
      aws-record (~> 2)
      aws-sdk-ses (~> 1)
      aws-sdk-sesv2 (~> 1)
      aws-sdk-sqs (~> 1)
      aws-sessionstore-dynamodb (~> 2)
      concurrent-ruby (~> 1)
      railties (>= 5.2.0)
    aws-sdk-s3 (1.120.1)
      aws-sdk-core (~> 3, >= 3.165.0)
      aws-sdk-kms (~> 1)
      aws-sigv4 (~> 1.4)
    aws-sdk-ses (1.49.0)
      aws-sdk-core (~> 3, >= 3.165.0)
      aws-sigv4 (~> 1.1)
    aws-sdk-sesv2 (1.32.0)
      aws-sdk-core (~> 3, >= 3.165.0)
      aws-sigv4 (~> 1.1)
    aws-sdk-sqs (1.53.0)
      aws-sdk-core (~> 3, >= 3.165.0)
      aws-sigv4 (~> 1.1)
    aws-sessionstore-dynamodb (2.0.1)
      aws-sdk-dynamodb (~> 1)
      rack (~> 2)
    aws-sigv4 (1.5.2)
      aws-eventstream (~> 1, >= 1.0.2)
    barby (0.6.8)
    barnes (0.0.9)
      multi_json (~> 1)
      statsd-ruby (~> 1.1)
    bcrypt (3.1.18)
    benchmark-ips (2.12.0)
    better_errors (2.9.1)
      coderay (>= 1.0.0)
      erubi (>= 1.0.0)
      rack (>= 0.9.0)
    binding_of_caller (1.0.0)
      debug_inspector (>= 0.0.1)
    bootsnap (1.16.0)
      msgpack (~> 1.2)
    bourne (1.6.0)
      mocha (~> 1.1)
    browser (5.3.1)
    builder (3.2.4)
    cable_ready (5.0.0.rc2)
      actionpack (>= 5.2)
      actionview (>= 5.2)
      activesupport (>= 5.2)
      railties (>= 5.2)
      thread-local (>= 1.1.0)
    cancancan (3.5.0)
    capybara (3.39.0)
      addressable
      matrix
      mini_mime (>= 0.1.3)
      nokogiri (~> 1.8)
      rack (>= 1.6.0)
      rack-test (>= 0.6.3)
      regexp_parser (>= 1.5, < 3.0)
      xpath (~> 3.2)
    childprocess (4.1.0)
    chunky_png (1.4.0)
    ci_reporter (2.1.0)
      builder (>= 2.1.2)
      rexml
    coderay (1.1.3)
    concurrent-ruby (1.2.2)
    connection_pool (2.4.0)
    crass (1.0.6)
    database_cleaner (2.0.2)
      database_cleaner-active_record (>= 2, < 3)
    database_cleaner-active_record (2.1.0)
      activerecord (>= 5.a)
      database_cleaner-core (~> 2.0.0)
    database_cleaner-core (2.0.1)
    date (3.3.3)
    dead_end (4.0.0)
    debug_inspector (1.1.0)
    declarative (0.0.20)
    derailed_benchmarks (2.1.2)
      benchmark-ips (~> 2)
      dead_end
      get_process_mem (~> 0)
      heapy (~> 0)
      memory_profiler (>= 0, < 2)
      mini_histogram (>= 0.3.0)
      rack (>= 1)
      rack-test
      rake (> 10, < 14)
      ruby-statistics (>= 2.1)
      thor (>= 0.19, < 2)
    diff-lcs (1.5.0)
    dig_rb (1.0.1)
    docile (1.4.0)
    dotenv (2.8.1)
    dotenv-rails (2.8.1)
      dotenv (= 2.8.1)
      railties (>= 3.2)
    em-websocket (0.5.3)
      eventmachine (>= 0.12.9)
      http_parser.rb (~> 0)
    erubi (1.12.0)
    et-orbi (1.2.7)
      tzinfo
    ethon (0.16.0)
      ffi (>= 1.15.0)
    eventmachine (1.2.7)
    expgen (0.1.1)
      parslet
    factory_bot (6.2.1)
      activesupport (>= 5.0.0)
    factory_bot_rails (6.2.0)
      factory_bot (~> 6.2.0)
      railties (>= 5.0.0)
    faraday (2.7.4)
      faraday-net_http (>= 2.0, < 3.1)
      ruby2_keywords (>= 0.0.4)
    faraday-multipart (1.0.4)
      multipart-post (~> 2)
    faraday-net_http (3.0.2)
    fattureincloud_ruby_sdk (2.0.14)
      typhoeus (~> 1.0, >= 1.0.1)
    fcm (1.0.8)
      faraday (>= 1.0.0, < 3.0)
      googleauth (~> 1)
    ffi (1.15.5)
    filelock (1.1.1)
    find_a_port (1.0.1)
    foreman (0.87.2)
    formatador (1.1.0)
    formtastic (4.0.0)
      actionpack (>= 5.2.0)
    formtastic_i18n (0.7.0)
    forwardable (1.3.3)
    fugit (1.8.1)
      et-orbi (~> 1, >= 1.2.7)
      raabro (~> 1.4)
    gems (1.2.0)
    get_process_mem (0.2.7)
      ffi (~> 1.0)
    globalid (1.1.0)
      activesupport (>= 5.0)
    google-api-client (0.53.0)
      google-apis-core (~> 0.1)
      google-apis-generator (~> 0.1)
    google-apis-core (0.11.0)
      addressable (~> 2.5, >= 2.5.1)
      googleauth (>= 0.16.2, < 2.a)
      httpclient (>= 2.8.1, < 3.a)
      mini_mime (~> 1.0)
      representable (~> 3.0)
      retriable (>= 2.0, < 4.a)
      rexml
      webrick
    google-apis-discovery_v1 (0.14.0)
      google-apis-core (>= 0.11.0, < 2.a)
    google-apis-generator (0.12.0)
      activesupport (>= 5.0)
      gems (~> 1.2)
      google-apis-core (>= 0.11.0, < 2.a)
      google-apis-discovery_v1 (~> 0.5)
      thor (>= 0.20, < 2.a)
    googleauth (1.5.0)
      faraday (>= 0.17.3, < 3.a)
      jwt (>= 1.4, < 3.0)
      memoist (~> 0.16)
      multi_json (~> 1.11)
      os (>= 0.9, < 2.0)
      signet (>= 0.16, < 2.a)
    guard (2.18.0)
      formatador (>= 0.2.4)
      listen (>= 2.7, < 4.0)
      lumberjack (>= 1.0.12, < 2.0)
      nenv (~> 0.1)
      notiffany (~> 0.0)
      pry (>= 0.13.0)
      shellany (~> 0.0)
      thor (>= 0.18.1)
    guard-compat (1.2.1)
    guard-livereload (2.5.2)
      em-websocket (~> 0.5)
      guard (~> 2.8)
      guard-compat (~> 1.0)
      multi_json (~> 1.8)
    guard-rspec (4.7.3)
      guard (~> 2.1)
      guard-compat (~> 1.1)
      rspec (>= 2.99.0, < 4.0)
    guard-spork (2.1.0)
      childprocess (>= 0.2.3)
      guard (~> 2.0)
      guard-compat (~> 1.0)
      spork (>= 0.8.4)
    has_scope (0.8.1)
      actionpack (>= 5.2)
      activesupport (>= 5.2)
    hashie (5.0.0)
    heapy (0.2.0)
      thor
    hiredis (0.6.3)
    http_parser.rb (0.8.0)
    httparty (0.21.0)
      mini_mime (>= 1.0.0)
      multi_xml (>= 0.5.2)
    httpclient (2.8.3)
    i18n (1.12.0)
      concurrent-ruby (~> 1.0)
    icalendar (2.8.0)
      ice_cube (~> 0.16)
    ice_cube (0.16.4)
    image_processing (1.12.2)
      mini_magick (>= 4.9.5, < 5)
      ruby-vips (>= 2.0.17, < 3)
    inflection (1.0.0)
    inherited_resources (1.13.1)
      actionpack (>= 5.2, < 7.1)
      has_scope (~> 0.6)
      railties (>= 5.2, < 7.1)
      responders (>= 2, < 4)
    jmespath (1.6.2)
    jquery-rails (4.5.1)
      rails-dom-testing (>= 1, < 3)
      railties (>= 4.2.0)
      thor (>= 0.14, < 2.0)
    json (2.6.3)
    jwt (2.7.0)
    kaminari (1.2.2)
      activesupport (>= 4.1.0)
      kaminari-actionview (= 1.2.2)
      kaminari-activerecord (= 1.2.2)
      kaminari-core (= 1.2.2)
    kaminari-actionview (1.2.2)
      actionview
      kaminari-core (= 1.2.2)
    kaminari-activerecord (1.2.2)
      activerecord
      kaminari-core (= 1.2.2)
    kaminari-core (1.2.2)
    launchy (2.5.2)
      addressable (~> 2.8)
    letter_opener (1.8.1)
      launchy (>= 2.2, < 3)
    listen (3.8.0)
      rb-fsevent (~> 0.10, >= 0.10.3)
      rb-inotify (~> 0.9, >= 0.9.10)
    loofah (2.20.0)
      crass (~> 1.0.2)
      nokogiri (>= 1.5.9)
    lumberjack (1.2.8)
    mail (2.8.1)
      mini_mime (>= 0.1.1)
      net-imap
      net-pop
      net-smtp
    marcel (1.0.2)
    matrix (0.4.2)
    memoist (0.16.2)
    memory_profiler (1.0.1)
    method_source (1.0.0)
    mini_histogram (0.3.1)
    mini_magick (4.12.0)
    mini_mime (1.1.2)
    mini_portile2 (2.8.1)
    minitest (5.18.0)
    mocha (1.16.1)
    money (6.16.0)
      i18n (>= 0.6.4, <= 2)
    msgpack (1.7.0)
    multi_json (1.15.0)
    multi_xml (0.6.0)
    multipart-post (2.3.0)
    mustermann (3.0.0)
      ruby2_keywords (~> 0.0.1)
    nenv (0.3.0)
    net-imap (0.3.4)
      date
      net-protocol
    net-pop (0.1.2)
      net-protocol
    net-protocol (0.2.1)
      timeout
    net-smtp (0.3.3)
      net-protocol
    nio4r (2.5.9)
    nokogiri (1.14.2)
      mini_portile2 (~> 2.8.0)
      racc (~> 1.4)
    notiffany (0.1.3)
      nenv (~> 0.1)
      shellany (~> 0.0)
    oauth2 (2.0.9)
      faraday (>= 0.17.3, < 3.0)
      jwt (>= 1.0, < 3.0)
      multi_xml (~> 0.5)
      rack (>= 1.2, < 4)
      snaky_hash (~> 2.0)
      version_gem (~> 1.1)
    oj (3.14.2)
    omniauth (2.1.1)
      hashie (>= 3.4.6)
      rack (>= 2.2.3)
      rack-protection
    omniauth-facebook (9.0.0)
      omniauth-oauth2 (~> 1.2)
    omniauth-google-oauth2 (1.1.1)
      jwt (>= 2.0)
      oauth2 (~> 2.0.6)
      omniauth (~> 2.0)
      omniauth-oauth2 (~> 1.8.0)
    omniauth-oauth2 (1.8.0)
      oauth2 (>= 1.4, < 3)
      omniauth (~> 2.0)
    omniauth-rails_csrf_protection (1.0.1)
      actionpack (>= 4.2)
      omniauth (~> 2.0)
    orm_adapter (0.5.0)
    os (1.1.4)
    pact (1.63.0)
      pact-mock_service (~> 3.0, >= 3.3.1)
      pact-support (~> 1.16, >= 1.16.9)
      rack-test (>= 0.6.3, < 3.0.0)
      rspec (~> 3.0)
      term-ansicolor (~> 1.0)
      thor (>= 0.20, < 2.0)
      webrick (~> 1.3)
    pact-mock_service (3.11.0)
      filelock (~> 1.1)
      find_a_port (~> 1.0.1)
      json
      pact-support (~> 1.16, >= 1.16.4)
      rack (~> 2.0)
      rspec (>= 2.14)
      term-ansicolor (~> 1.0)
      thor (>= 0.19, < 2.0)
      webrick (~> 1.3)
    pact-support (1.19.0)
      awesome_print (~> 1.9)
      diff-lcs (~> 1.4)
      expgen (~> 0.1)
      rainbow (~> 3.1.1)
    pact_broker-client (1.66.1)
      dig_rb (~> 1.0)
      httparty (>= 0.21.0, < 1.0.0)
      rake (~> 13.0)
      table_print (~> 1.5)
      term-ansicolor (~> 1.7)
      thor (>= 0.20, < 2.0)
    paper_trail (14.0.0)
      activerecord (>= 6.0)
      request_store (~> 1.4)
    parallel (1.22.1)
    parser (3.2.2.0)
      ast (~> 2.4.1)
    parslet (2.0.0)
    pdf-core (0.9.0)
    pg (1.4.6)
    pkg-config (1.5.1)
    prawn (2.4.0)
      pdf-core (~> 0.9.0)
      ttfunk (~> 1.7)
    prawn-table (0.2.2)
      prawn (>= 1.3.0, < 3.0.0)
    prawnto_2 (0.3.1)
      prawn (>= 1.0.0)
      rails (>= 3.2)
    prime (0.1.2)
      forwardable
      singleton
    pry (0.14.2)
      coderay (~> 1.1)
      method_source (~> 1.0)
    public_suffix (5.0.1)
    puma (6.2.1)
      nio4r (~> 2.0)
    raabro (1.4.0)
    rabl (0.16.1)
      activesupport (>= 2.3.14)
    racc (1.6.2)
    rack (2.2.6.4)
    rack-attack (6.6.1)
      rack (>= 1.0, < 3)
    rack-cors (2.0.1)
      rack (>= 2.0.0)
    rack-protection (3.0.5)
      rack
    rack-proxy (0.7.6)
      rack
    rack-test (2.1.0)
      rack (>= 1.3)
    rails (7.0.4.3)
      actioncable (= 7.0.4.3)
      actionmailbox (= 7.0.4.3)
      actionmailer (= 7.0.4.3)
      actionpack (= 7.0.4.3)
      actiontext (= 7.0.4.3)
      actionview (= 7.0.4.3)
      activejob (= 7.0.4.3)
      activemodel (= 7.0.4.3)
      activerecord (= 7.0.4.3)
      activestorage (= 7.0.4.3)
      activesupport (= 7.0.4.3)
      bundler (>= 1.15.0)
      railties (= 7.0.4.3)
    rails-dom-testing (2.0.3)
      activesupport (>= 4.2.0)
      nokogiri (>= 1.6)
    rails-html-sanitizer (1.5.0)
      loofah (~> 2.19, >= 2.19.1)
    railties (7.0.4.3)
      actionpack (= 7.0.4.3)
      activesupport (= 7.0.4.3)
      method_source
      rake (>= 12.2)
      thor (~> 1.0)
      zeitwerk (~> 2.5)
    rainbow (3.1.1)
    rake (13.0.6)
    ransack (3.2.1)
      activerecord (>= 6.1.5)
      activesupport (>= 6.1.5)
      i18n
    rb-fsevent (0.11.2)
    rb-inotify (0.10.1)
      ffi (~> 1.0)
    rbtree3 (0.7.0)
    redcarpet (3.6.0)
    redis (4.8.1)
    redis-session-store (0.11.5)
      actionpack (>= 6, < 8)
      redis (>= 3, < 6)
    redlock (1.3.2)
      redis (>= 3.0.0, < 6.0)
    regexp_parser (2.7.0)
    representable (3.2.0)
      declarative (< 0.1.0)
      trailblazer-option (>= 0.1.1, < 0.2.0)
      uber (< 0.2.0)
    request_store (1.5.1)
      rack (>= 1.4)
    responders (3.1.0)
      actionpack (>= 5.2)
      railties (>= 5.2)
    retriable (3.1.2)
    rexml (3.2.5)
    rmagick (5.2.0)
      pkg-config (~> 1.4)
    roboto (1.0.1)
      rails (>= 4.2)
    rqrcode (2.1.2)
      chunky_png (~> 1.0)
      rqrcode_core (~> 1.0)
    rqrcode_core (1.2.0)
    rspec (3.12.0)
      rspec-core (~> 3.12.0)
      rspec-expectations (~> 3.12.0)
      rspec-mocks (~> 3.12.0)
    rspec-core (3.12.1)
      rspec-support (~> 3.12.0)
    rspec-expectations (3.12.2)
      diff-lcs (>= 1.2.0, < 2.0)
      rspec-support (~> 3.12.0)
    rspec-mocks (3.12.5)
      diff-lcs (>= 1.2.0, < 2.0)
      rspec-support (~> 3.12.0)
    rspec-rails (6.0.1)
      actionpack (>= 6.1)
      activesupport (>= 6.1)
      railties (>= 6.1)
      rspec-core (~> 3.11)
      rspec-expectations (~> 3.11)
      rspec-mocks (~> 3.11)
      rspec-support (~> 3.11)
    rspec-support (3.12.0)
    rubocop (1.49.0)
      json (~> 2.3)
      parallel (~> 1.10)
      parser (>= 3.2.0.0)
      rainbow (>= 2.2.2, < 4.0)
      regexp_parser (>= 1.8, < 3.0)
      rexml (>= 3.2.5, < 4.0)
      rubocop-ast (>= 1.28.0, < 2.0)
      ruby-progressbar (~> 1.7)
      unicode-display_width (>= 2.4.0, < 3.0)
    rubocop-ast (1.28.0)
      parser (>= 3.2.1.0)
    rubocop-rails (2.18.0)
      activesupport (>= 4.2.0)
      rack (>= 1.1)
      rubocop (>= 1.33.0, < 2.0)
    ruby-progressbar (1.13.0)
    ruby-statistics (3.0.1)
    ruby-vips (2.1.4)
      ffi (~> 1.12)
    ruby2_keywords (0.0.5)
    rubyzip (2.3.2)
    rufus-scheduler (3.8.2)
      fugit (~> 1.1, >= 1.1.6)
    scout_apm (5.3.3)
      parser
    seed_dump (3.3.1)
      activerecord (>= 4)
      activesupport (>= 4)
    selenium-webdriver (4.8.6)
      rexml (~> 3.2, >= 3.2.5)
      rubyzip (>= 1.2.2, < 3.0)
      websocket (~> 1.0)
    semantic_range (3.0.0)
    shellany (0.0.1)
    shoulda-matchers (5.3.0)
      activesupport (>= 5.2.0)
    sidecloq (0.4.8)
      concurrent-ruby
      redlock (>= 0.2.0, < 2)
      rufus-scheduler (~> 3.1, >= 3.1.10)
      sidekiq (>= 3.5.4, < 7)
    sidekiq (6.5.8)
      connection_pool (>= 2.2.5, < 3)
      rack (~> 2.0)
      redis (>= 4.5.0, < 5)
    signet (0.17.0)
      addressable (~> 2.8)
      faraday (>= 0.17.5, < 3.a)
      jwt (>= 1.5, < 3.0)
      multi_json (~> 1.10)
    simplecov (0.22.0)
      docile (~> 1.1)
      simplecov-html (~> 0.11)
      simplecov_json_formatter (~> 0.1)
    simplecov-html (0.12.3)
    simplecov_json_formatter (0.1.4)
    sinatra (3.0.5)
      mustermann (~> 3.0)
      rack (~> 2.2, >= 2.2.4)
      rack-protection (= 3.0.5)
      tilt (~> 2.0)
    singleton (0.1.1)
    sitemap_generator (6.3.0)
      builder (~> 3.0)
    snaky_hash (2.0.1)
      hashie
      version_gem (~> 1.1, >= 1.1.1)
    spork (0.9.2)
    sprockets (3.7.2)
      concurrent-ruby (~> 1.0)
      rack (> 1, < 3)
    sprockets-rails (3.4.2)
      actionpack (>= 5.2)
      activesupport (>= 5.2)
      sprockets (>= 3.0.0)
    stackprof (0.2.24)
    statsd-ruby (1.5.0)
    sync (0.5.0)
    table_print (1.5.7)
    tailwindcss-rails (2.0.27)
      railties (>= 6.0.0)
    term-ansicolor (1.7.1)
      tins (~> 1.0)
    terminal-notifier-guard (1.7.0)
    thor (1.2.1)
    thread-local (1.1.0)
    tilt (2.1.0)
    timeout (0.3.2)
    tins (1.32.1)
      sync
    trailblazer-option (0.1.2)
    ttfunk (1.7.0)
    turn (0.9.6)
      ansi
    typhoeus (1.4.0)
      ethon (>= 0.9.0)
    tzinfo (2.0.6)
      concurrent-ruby (~> 1.0)
    uber (0.1.0)
    unicode-display_width (2.4.2)
    version_gem (1.1.2)
    view_component (2.82.0)
      activesupport (>= 5.2.0, < 8.0)
      concurrent-ruby (~> 1.0)
      method_source (~> 1.0)
    view_component_reflex (3.3.0)
      rails (>= 5.2, < 8.0)
      stimulus_reflex (>= 3.5.0.pre9)
      view_component (>= 2.28.0)
    warden (1.2.9)
      rack (>= 2.0.9)
    webpacker (6.0.0.rc.6)
      activesupport (>= 5.2)
      rack-proxy (>= 0.6.1)
      railties (>= 5.2)
      semantic_range (>= 2.3.0)
    webrick (1.8.1)
    websocket (1.2.9)
    websocket-driver (0.7.5)
      websocket-extensions (>= 0.1.0)
    websocket-extensions (0.1.5)
    xpath (3.2.0)
      nokogiri (~> 1.8)
    zeitwerk (2.6.7)
    zendesk_api (2.0.0)
      faraday (> 2.0.0)
      faraday-multipart
      hashie (>= 3.5.2, < 6.0.0)
      inflection
      mini_mime
      multipart-post (~> 2.0)

PLATFORMS
  ruby

DEPENDENCIES
  RedCloth
  active_admin_plain_datetime_picker!
  active_admin_sidebar!
  activeadmin!
  activemerchant
  airbrake
  analytics-ruby (~> 2.0.0)
  aws-sdk-rails
  aws-sdk-s3
  barby
  barnes
  better_errors
  binding_of_caller
  bootsnap
  bourne
  browser
  cancancan
  capybara
  chunky_png
  ci_reporter
  database_cleaner
  derailed_benchmarks
  devise!
  devise_sms_activable!
  dotenv-rails
  factory_bot_rails
  faraday
  fattureincloud_ruby_sdk
  fcm
  foreman
  google-api-client
  guard
  guard-livereload
  guard-rspec
  guard-spork
  hiredis
  icalendar
  image_processing (>= 1.2)
  inherited_resources
  iron_bank!
  launchy
  letter_opener
  matrix
  memory_profiler
  money
  net-imap
  net-pop
  net-smtp
  nokogiri
  oj
  omniauth-facebook
  omniauth-google-oauth2
  omniauth-rails_csrf_protection
  pact
  pact_broker-client
  paper_trail
  parallel
  parser
  pg
  prawn
  prawn-table
  prawnto_2
  prime
  puma
  rabl
  rack-attack
  rack-cors
  rails (> 6.1.0)
  rb-fsevent
  redcarpet
  redis
  redis-session-store
  rmagick
  roboto
  rqrcode (~> 2.0)
  rspec
  rspec-core
  rspec-expectations
  rspec-mocks
  rspec-rails
  rubocop
  rubocop-rails
  scout_apm
  seed_dump
  selenium-webdriver
  shoulda-matchers
  sidecloq
  sidekiq
  simplecov
  sinatra
  sitemap_generator
  spork
  sprockets (< 4)
  sprockets-rails
  stackprof
  stimulus_reflex!
  stripe!
  tailwindcss-rails (~> 2.0)
  terminal-notifier-guard
  turn
  view_component
  view_component_reflex
  webpacker (~> 6.0.0.pre.rc.6)
  zendesk_api

RUBY VERSION
   ruby 3.1.2p20

BUNDLED WITH
   2.2.32
0

I just want to add to this that I followed the instruction here and couldn't get it to work either: https://www.jetbrains.com/help/ruby/using-docker-as-a-remote-interpreter.html#debug_with_docker_compose

0

Well, this is weird. I backed up and removed the gems under `/Applications/RubyMine.app/Contents/plugins/ruby/rb/gems` and all of a sudden debugging started working.

1

We have a YouTrack issue related to debugging with docker-compose so it'd be great if you could add your vote to it (https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications)

https://youtrack.jetbrains.com/issue/RUBY-31246/Could-not-find-a-valid-gem-ruby-debug-ide-2.3.13.gem-0-in-any-repository

In addition, please try the workaround mentioned in the comment. 

0

I have JetBrains Toolbox, so the RubyMine app is stored somewhere else–`~/Library/Application Support/JetBrains/Toolbox/apps/RubyMine/ch-0/231.8109.174/RubyMine.app/Contents/plugins/ruby/rb/gems`.

I removed the gems, restarted RubyMine, and successfully debugged some specs! Thank you, John Cavalieri!

0

FWIW, my project is a Rails 7 app (v7.0.4.3) and `Gemfile` is loading the `debug` gem.

0

BTW, this workaround also solved a problem with another Rails app on Docker that I had cloned and wanted to start working on. For the new project, RubyMine failed with an error message (numerous times) when trying to set up a Remote Interpreter in the Ruby SDK and Gems Settings page.

After deleting the embedded gems, RubyMine connected to the new project's Docker via the Remote Interpreter without a problem.

0

Finally got Rails 7 on docker-compose to work with RubyMine debugger.

Wrote a little post:
https://www.notion.so/vptown/The-Micro-SaaS-Studio-3b63e0c7ec954e5c9b70a30afafedf31?p=32756a64d64c4e92a2c2a350a0e6e6d0&pm=s

Now trying to figure out how to have a running web container along with debugging some test.
I think it is related to puma's pid because test debugger is running on a different port than dev (3000)

0

Stephane Bounmy do you mean running 2 different Run configurations in debug mode in docker?

0

请先登录再写评论。