[Rails] Re: How to use ruby script/console to debug methods in appl

2010-02-09 Thread lukas
Thanks Jeff, it worked. We've been able to test the whole stack of methods. :) And I've learned something today. Regards Lukas On Feb 9, 8:44 pm, Marnen Laibow-Koser wrote: > lukas wrote: > > Marnen, > > > thanks for your feedback. > > Indeed, I'm a newbie ruby programer. I'll keep your advice

[Rails] Re: How to use ruby script/console to debug methods in appl

2010-02-09 Thread Marnen Laibow-Koser
lukas wrote: > Marnen, > > thanks for your feedback. > Indeed, I'm a newbie ruby programer. I'll keep your advice in mind. > OK. You're most welcome. > I was just hoping I could run the method from the debugging console > and check the output directly. You can. And I explained how. script/co

[Rails] Re: How to use ruby script/console to debug methods in appl

2010-02-09 Thread Jeff Lewis
Hi Lukas, You definitely can, by adding some temporary debug puts calls interspersed in your method, and then calling your method either using ./script/runner or from within a ./script/console session. To make that method easier to test, I'd relocate that method outside of ./app/controllers/appli

[Rails] Re: How to use ruby script/console to debug methods in appl

2010-02-09 Thread lukas
Marnen, thanks for your feedback. Indeed, I'm a newbie ruby programer. I'll keep your advice in mind. I was just hoping I could run the method from the debugging console and check the output directly. On Feb 8, 11:23 pm, Marnen Laibow-Koser wrote: > lukas wrote: > > Hello everyone, > > > newbie

[Rails] Re: How to use ruby script/console to debug methods in appl

2010-02-08 Thread Marnen Laibow-Koser
lukas wrote: > Hello everyone, > > newbie question: > > I have a couple of methods that interact with a remote python server > in application.rb. > Is there a convenient way to debug them? e.g. run them from "ruby > script/console" - debug-console and see the return values? > Just set a breakpo