{"id":627,"date":"2007-07-29T16:21:39","date_gmt":"2007-07-29T14:21:39","guid":{"rendered":"http:\/\/www.marblestation.com\/blog\/?p=627"},"modified":"2012-04-26T16:44:22","modified_gmt":"2012-04-26T14:44:22","slug":"rails-breakpoint-does-not-work-in-ubuntu-feisty-ruby-version-problem","status":"publish","type":"post","link":"https:\/\/www.marblestation.com\/?p=627","title":{"rendered":"Rails&#8217; Breakpoint does not work in Ubuntu Feisty (ruby version problem)"},"content":{"rendered":"<p>Ruby 1.8.5 is installed by default in Ubuntu Feisty, this version presents some problems when you try to program with Rails. If you want to debug your application using <a href=\"http:\/\/wiki.rubyonrails.org\/rails\/pages\/HowtoDebugWithBreakpoint\">breakpointers<\/a>, Webrick will abort showing the following message:<\/p>\n<pre>\r\nBreakpoints are not currently working with Ruby 1.8.5\r\n\r\nRAILS_ROOT: script\/..\/config\/..\r\nApplication Trace | Framework Trace | Full Trace\r\n\r\nvendor\/rails\/railties\/lib\/breakpoint.rb:21:in `of_caller'\r\nvendor\/rails\/railties\/lib\/breakpoint.rb:543:in `breakpoint'\r\napp\/controllers\/books_controller.rb:19:in `show'\r\n<\/pre>\n<p>In order to avoid this problem, I&#8217;ve downgraded my ruby version to the one used in Edgy (the previous version of Ubuntu). Concretely, it is necessary to downgrade this packages:<br \/>\n<!--more--><\/p>\n<p><a href=\"http:\/\/packages.ubuntu.com\/edgy\/interpreters\/ruby\">ruby<\/a><br \/>\n<a href=\"http:\/\/packages.ubuntu.com\/edgy\/interpreters\/ruby1.8\">ruby1.8<\/a><br \/>\n<a href=\"http:\/\/packages.ubuntu.com\/edgy\/libs\/libruby\">libruby<\/a><br \/>\n<a href=\"http:\/\/packages.ubuntu.com\/edgy\/libs\/libruby1.8\">libruby1.8<\/a><br \/>\n<a href=\"http:\/\/packages.ubuntu.com\/edgy\/interpreters\/irb1.8\">irb1.8<\/a><br \/>\n<a href=\"http:\/\/packages.ubuntu.com\/edgy\/interpreters\/libreadline-ruby1.8\">libreadline-ruby1.8<\/a><br \/>\n<a href=\"http:\/\/packages.ubuntu.com\/edgy\/doc\/rdoc1.8\">rdoc1.8<\/a><\/p>\n<p>After we have downloaded those packages, we can install them by:<\/p>\n<pre>\r\ndpkg -i irb1.8_1.8.4-5ubuntu1.2_all.deb libruby_1.8.2-1_all.deb ruby_1.8.2-1_all.deb\r\n            libreadline-ruby1.8_1.8.4-5ubuntu1.2_i386.deb doc1.8_1.8.4-5ubuntu1.2_all.deb\r\n            libruby1.8_1.8.4-5ubuntu1.2_i386.deb ruby1.8_1.8.4-5ubuntu1.2_i386.deb\r\n<\/pre>\n<p>Finally, we have to indicate that we do not want to upgrade those packages by editing &#8216;\/etc\/apt\/preferences&#8217; (<a href=\"http:\/\/www.debian.org\/doc\/manuals\/apt-howto\/ch-apt-get.en.html#s-pin\">more info<\/a>): <\/p>\n<pre>\r\nPackage: irb1.8\r\nPin: version 1.8.4*\r\nPin-Priority: 1001\r\n\r\nPackage: libreadline-ruby1.8\r\nPin: version 1.8.4*\r\nPin-Priority: 1001\r\n\r\nPackage: libruby1.8\r\nPin: version 1.8.4*\r\nPin-Priority: 1001\r\n\r\nPackage: ruby1.8\r\nPin: version 1.8.4*\r\nPin-Priority: 1001\r\n\r\nPackage: rdoc1.8\r\nPin: version 1.8.4*\r\nPin-Priority: 1001\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Ruby 1.8.5 is installed by default in Ubuntu Feisty, this version presents some problems when you try to program with Rails. If you want to debug your application using breakpointers, Webrick will abort showing the following message: Breakpoints are not currently working with Ruby 1.8.5 RAILS_ROOT: script\/..\/config\/.. Application Trace | Framework Trace | Full Trace &hellip; <a href=\"https:\/\/www.marblestation.com\/?p=627\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Rails&#8217; Breakpoint does not work in Ubuntu Feisty (ruby version problem)<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,6],"tags":[],"class_list":["post-627","post","type-post","status-publish","format-standard","hentry","category-english","category-tecnologia"],"_links":{"self":[{"href":"https:\/\/www.marblestation.com\/index.php?rest_route=\/wp\/v2\/posts\/627","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.marblestation.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.marblestation.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.marblestation.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.marblestation.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=627"}],"version-history":[{"count":1,"href":"https:\/\/www.marblestation.com\/index.php?rest_route=\/wp\/v2\/posts\/627\/revisions"}],"predecessor-version":[{"id":1291,"href":"https:\/\/www.marblestation.com\/index.php?rest_route=\/wp\/v2\/posts\/627\/revisions\/1291"}],"wp:attachment":[{"href":"https:\/\/www.marblestation.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=627"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.marblestation.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=627"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.marblestation.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=627"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}