On 1/30/08, Nathan Nobbe <[EMAIL PROTECTED]> wrote:
> what id like to know, since you seem to know so much about the ruby on
> rails framework,
> is, what sort of debugging support is there?  this is a weak spot in
> php to be sure.  ive
> tried multiple clients w/ xdebug w/ marginal success at this point.

Rails has support for ruby-debug built-in.

`gem install ruby-debug` to install it.

You would then add 'debugger' or 'breakpoint' into the code in
question.  When execution hits that point your (development) server
drops into an IRB session where you would find your entire Rails
environment at your fingertips.  You can interrogate the get/post data
or perform a database query.  Whatever you can do in code you can do
in irb in real-time, zero limitations.

Ruby's IRB itself is a lot of fun even when not debugging:

> irb
>> 'ruby' > 'php'
=> true

It's like having a shell built directly into the language.


-- 
Greg Donald
http://destiney.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to