0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

RubyMineでdocker-composeをdebug

Posted at

RubyMine 2019.1.2
Ruby 2.5.x

ほぼこちらの手順で実施

RubyMine 2019.1.2でdocker compose環境でのRailsアプリのデバッグを試してみた
https://qiita.com/masaruhr/items/f6df4f5ea36a4b9af142

ハマった箇所と対応

- remote interpreter 追加時に Unable to read RBConfig from specified interpreter

Experimentail Futureのruby.docker.internal.via.execをオフにする

  • デバッグ実行で「annot start debugger. Gem 'ruby-debug-ide' isn't installed or its executable script 'rdebug-ide' doesn't exist.」

Gemfileにdebaseとruby-debug-ideを追加する
RubyMineか何処かにキャッシュされているっぽい。
docker-compose down、remote interpreterを削除=>RubyMine再起動などを行い、頑張ってキャッシュを消す

  • デバッグ実行でException: undefined method `chomp' for nil:NilClass

Docker debugging and sub-debugger with random port
https://github.com/ruby-debug/ruby-debug-ide/issues/107

マルチプロセスのrubyアプリだと発生するらしい。
develop環境をWEBRICKへ変更で対応

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?