Hi folks,
there's a very useful recipe for using debug in Hobo 1.0 at
http://cookbook-1.0.hobocentral.net/recipes/56-setup-ruby-debug.
To use debug on 1.3 the Setup steps are slightly different -
in your Gemfile you need
group :development, :test do
gem 'ruby-debug19'
end
(assuming you're using ruby 1.9.x - if you're still on 1.8.x I believe
you need the 'ruby-debug' gem here)
Then after running 'bundle update', start your server with
rails server --debug
After that, the rest of apolzon's recipe still applies. As he says...
to use it, just add “debugger” ( without the quotes) to anyplace you
would normally put ruby code. If you are trying to look at something
in the view layer, enter the following:
<% debugger %>
Be sure not to use the <%= beesting as it will end up messing the
output buffer up.
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/hobousers?hl=en.