Hi Fred! The bit wich fetches the xml and parses it I have done a regular puts on that many times and i did 'var local' in debugger mode which displayed all local variables and then I got all the xml output. Before I did the debugging actually before it has been set. Im trying to do it after now as well but for some reason it has problems going in to debug mode. I do Rails s --debugger and it says that "Debugger enabled" but it doesnt get there. Do you have any feedback from the link a pasted with code on refactormycode.com? Is it something obviously wrong Im doing when declaring the variabe? Thanks in advance!
> Are you inspecting the variable before or after it has been set? > Have you tried refactoring the bit which fetches and parses the xml > feed into its own class so that you can more easily play with it in > the console (and test it) ? > > Fred > > > > > On 15 Jan, 16:07, Colin Law <[email protected]> wrote: > > > > On 15 January 2011 13:39, Tim <[email protected]> wrote: > > > > >> So what did you learn from debugging it? > > > > >> Colin > > > > > Well Colin Im a bit confused. I had some problems with installing the > > > > ruby-debug as Im using Rails 3. So finally I gave up with that. > > > > Persevere. Rails 3 should be no problem. Did you follow the guide > > > here:http://guides.rubyonrails.org/debugging_rails_applications.html#debug... > > > If so what problem did you have? You need to be able to break into > > > code and inspect data and run code snippets to see what is wrong. > > > Even if you sort out your current issue there will be another that > > > needs the debugger. > > > > Colin > > > > > But > > > > when I did puts doc.to_s I get the xml in my console so I have it > > > > there. But the line after where I do this: @news = doc.css('news').map > > > > do |n| > > > > I tried to do @news.to_s and that gave me nothing. Also I did raise > > > > @news.to_yaml which just game me an error. Do u have any clues on > > > > that?! > > > > > Regards! > > > > > -- > > > > You received this message because you are subscribed to the Google > > > > Groups "Ruby on Rails: Talk" 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 > > > > athttp://groups.google.com/group/rubyonrails-talk?hl=en. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" 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/rubyonrails-talk?hl=en.

