2014-04-10 2 views
3

Intelli 12.1.7에서 Ruby 2.1.1p76을 어떻게 디버깅 할 수 있습니까? 나는 잘 내 스크립트를 실행할 수 있습니다,하지만 난 디버그 버튼을 클릭하면, 나는 대화 얻을 :Intellij 12.1.7을 사용하여 Ruby 2.1.1p76을 디버깅하는 방법

The gem ruby-debug-base required by the debugger is not currently installed. Would you like to install it? 

나는 그래 난 얻을 클릭이 :

10:36:21 AM Error running e2e 
      Failed to Install Gems. Following gems were not installed: 
      linecache (0.46): Error installing linecache: 
      ERROR: Failed to build gem native extension.  /home/jared/.rvm/rubies/ruby-2.1.1/bin/ruby extconf.rb Can't handle 1.9.x yet *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog  --srcdir=. --curdir --ruby=/home/jared/.rvm/rubies/ruby-2.1.1/bin/ruby extconf failed, exit code 1 Gem files will remain installed in /home/jared/.rvm/gems/[email protected]/gems/linecache-0.46 for inspection. Results logged to /home/jared/.rvm/gems/[email protected]/extensions/x86_64-linux/2.1.0/linecache-0.46/gem_make.out 
      /home/jared/.IntelliJIdea12/config/plugins/ruby/rb/gems/ruby-debug-base-0.10.5.rc1.gem: Error installing ruby-debug-base-0.10.5.rc1.gem: 
      ERROR: Failed to build gem native extension.  /home/jared/.rvm/rubies/ruby-2.1.1/bin/ruby extconf.rb Can't handle 1.9.x yet *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog  --srcdir=. --curdir --ruby=/home/jared/.rvm/rubies/ruby-2.1.1/bin/ruby extconf failed, exit code 1 Gem files will remain installed in /home/jared/.rvm/gems/[email protected]/gems/linecache-0.46 for inspection. Results logged to /home/jared/.rvm/gems/[email protected]/extensions/x86_64-linux/2.1.0/linecache-0.46/gem_make.out 

내가으로 업그레이드 할 수 있다는 것을 깨닫게 Intellij 13이 문제를 해결하기 위해,하지만 난하고 싶지 않아.

답변

0

Ruby Remote Debug를 사용할 수 있습니다.

rdebug-ide --port 1234 --dispatcher-port 26162 -- yourscript.rb 
  • 보도 : 터미널에서 스크립트를 실행

    gem install ruby-debug-ide --pre 
    
  • 는 IDEA

  • 에 "루비 원격 디버그"구성을 만듭니다

    1. rdebug-IDE 설치 IDEA의 "디버그"

  • 관련 문제