Sascha Ebach
2005-Feb-23 23:58 UTC
No kernel methods in script/breakpointer anymore? (Florian Gross)
Hi Florian, we had this question on IRC yesterday. You weren''t responding so I guess I ask via ML. [00:44] <Gul> nextangle: when i am in the breakpointer the Kernel methods dont work, is this intended? [00:44] <Gul> irb(#<Controllers::PageController:0x40ab3068>):010:0> puts ''TEST'' [00:44] <Gul> => nil [00:45] <nextangle> gul: stdin/out is redirected [00:45] <Gul> nextangle: why is that? [00:45] <nextangle> flgr has the details on that [00:46] <nextangle> can''t remember the explanation [00:46] <Gul> nextangle: i cant do ''y @page'' anymore [00:46] <Gul> aha [00:46] <Gul> i guess it was necessary than [00:47] <nextangle> @page.to_yml [00:47] <nextangle> I think [00:47] <Gul> nextangle: @page.to_yaml is still messy (no line breaks, hard to read) [00:48] <nextangle> k [00:48] <Gul> ill ask flgr What can I do about that. Is it possible to always let IRB spit out nicely formated output like produced by y @page or require ''pp'' pp @page When I have complete page data with lots of html in them it is very hard to see what is going on. Sascha
Florian Groß
2005-Feb-24 14:59 UTC
Re: No kernel methods in script/breakpointer anymore? (Florian Gross)
Sascha Ebach wrote:> Hi Florian,Moin.> we had this question on IRC yesterday. You weren''t responding so I guess > I ask via ML. > > [00:44] <Gul> nextangle: when i am in the breakpointer the Kernel > methods dont work, is this intended? > [00:44] <Gul> irb(#<Controllers::PageController:0x40ab3068>):010:0> puts > ''TEST'' > [00:44] <Gul> => nil > [00:45] <nextangle> gul: stdin/out is redirected > [00:45] <Gul> nextangle: why is that? > [00:45] <nextangle> flgr has the details on that > [00:46] <nextangle> can''t remember the explanation > [00:46] <Gul> nextangle: i cant do ''y @page'' anymore > [00:46] <Gul> aha > [00:46] <Gul> i guess it was necessary than > [00:47] <nextangle> @page.to_yml > [00:47] <nextangle> I think > [00:47] <Gul> nextangle: @page.to_yaml is still messy (no line breaks, > hard to read) > [00:48] <nextangle> k > [00:48] <Gul> ill ask flgr > > What can I do about that. Is it possible to always let IRB spit out > nicely formated output like produced by > > y @page > > or > > require ''pp'' > pp @page > > When I have complete page data with lots of html in them it is very hard > to see what is going on.This is answered on the ruby-breakpoint FAQ page now: http://ruby-breakpoint.rubyforge.org/wiki/wiki.pl?FrequentlyAskedQuestions If you intend to contact me directly, it''s probably a good idea to do so via flgr-uJDcxFRdEB8@public.gmane.org I''m reading the Rails list, but I''m mostly just scanning over it so I might miss messages like this on the mailing list or in IRC.