For example, do the following to create a new RSpec test: In the New Ruby Test popup, you need to select the testing framework and specify the class name to be tested. Select Ruby Test from the list and press Enter. Note that the target directory should be marked as a Test Sources Root. Right-click the corresponding directory and select New from the context menu. In the Project tool window Alt+1, select the directory in which you want to create a new file, and then choose File | New from the main menu. To create a new test from a template, do the following: For example, you can:Ĭreate a test when navigating to it from a test subject rdebug-ide -port 1236 -dispatcher-port 26166 -host 0.0.0.0 - script/rails s -b 0.0.0.RubyMine provides the ability to create missing tests in various ways. Upon many teeth grinding machinations and running permutations of my own I discovered a working solution. In that it fails to explain what exactly you should replace, or for that matter that you even have to replace, $COMMAND$ with. So this line in the original tutorial is incorrect rdebug-ide -host 0.0.0.0 -port 4000 -dispatcher-port 26162 - $COMMAND$ Oleg rdebug-ide is exploading is my rdebug-ide incantation wrong? See this answer, only 2 debug gems are needed (versions will be different for Ruby 1.8): ruby-debug-base (0.10.5.rc3)Ĭould you please describe the steps what you did exactly at RubyMine's official support forum? You have ruby-debug gem installed, remove it. Just run bundle install to get the proper versions of the required debug gems. You must uninstall this gem, remove it from the Gemfile and ensure that your code doesn't call any methods from this gem and is not trying to load it.Īs suggested by your Gemfile for debugging can look like this: gem 'linecache19', '>= 0.5.13', :git => '' No other debug gems should be listed by this command.Īs stated in another answer, debugger gem must not be used, it will conflict with the debug gems used by RubyMine and debugger will not work. Verify with gem list that you have the following or more recent versions installed: ruby-debug-base19x (0.11.30.pre10) If you have a problem downloading linecache19-0.5.13.gem gem, try this mirror instead. See this answer for the details how to install proper debug gem versions. All the other debug gems must be uninstalled and removed from the Gemfile. In order to debug from RubyMine you must use only 2 debug gems:Įxactly these gems must be used, not ruby-debug-base19, not ruby-debug19, not debugger. ![]() Trying to debug ruby 1.9.3p194 rails 3.2.7Įven though this question duplicates two other questions here, I'll answer it for the sake of completeness. In this particular case r_spec_runner.rb had require 'ruby-debug' statement causing cannot load such file - ruby-debug error when trying to run rails console. You need only 2 gems related to debugger, exactly as stated in my another answer linked in your question.Īfter removing the gem you need to ensure it's not referenced anywhere in the project. ![]() Make sure to remove gem 'debugger' from your Gemfile, it's a known conflict that will break debugging from RubyMine. UPDATE: RubyMine 6+ supports debugger gem. Unable to debug in RubyMine 4.5 using Ruby 1.9.3 You can add that in debug configurations. You need to add a mapping for your local project root -> remote project root. RubyMine 7 Remote Debug No such file or directory error Gem 'ruby-debug-base19x', '>= 0.11.30.pre10'ĭon't forget to update the bundle. Gem install has contributed the complete Gemfile changes for debugging: gem 'linecache19', '>= 0.5.13', :git => '' If you are getting linecache19 related errors, install it as follows: curl -OL You should get the following (or newer) versions: ruby-debug-base19x (0.11.30.pre10)Īdjust your Gemfile to include only these two gems (except the app specific gems). You are using some weird debug gems, only the following are needed:įirst, remove all the ruby-debug* gems, then install the required gems using the following commands: gem install ruby-debug-base19x -pre Cannot load such file - script/rails : Getting this error while remote debugging through RubyMine
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |