diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2004-12-13 23:38:08 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2004-12-13 23:38:08 +0000 |
commit | 458c5485a1165f8a3264040ea3761c0ceb1dc7f5 (patch) | |
tree | 802cde3f2f5d18cdd86950640a7467e20bcb5698 /railties/lib | |
parent | aaf6956c4776d6c43f77ab540cb51becdac3e00e (diff) | |
download | rails-458c5485a1165f8a3264040ea3761c0ceb1dc7f5.tar.gz rails-458c5485a1165f8a3264040ea3761c0ceb1dc7f5.tar.bz2 rails-458c5485a1165f8a3264040ea3761c0ceb1dc7f5.zip |
Improved the quality of the breakpointing -- especially under FCGI
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@146 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib')
-rwxr-xr-x | railties/lib/breakpoint.rb | 4 | ||||
-rw-r--r-- | railties/lib/breakpoint_client.rb | 9 |
2 files changed, 8 insertions, 5 deletions
diff --git a/railties/lib/breakpoint.rb b/railties/lib/breakpoint.rb index 9c3164b2eb..dccde0b11d 100755 --- a/railties/lib/breakpoint.rb +++ b/railties/lib/breakpoint.rb @@ -141,7 +141,7 @@ module Breakpoint end
unless [true, false, nil].include?(result)
- result.extend(DRbUndumped) rescue nil
+ result.extend(DRbUndumped) if result
end
return result
@@ -188,7 +188,7 @@ module Breakpoint @__bp_file = #{file.inspect}
@__bp_line = #{line}
extend Breakpoint::CommandBundle
- extend DRbUndumped
+ extend DRbUndumped if self
}, context) rescue nil
if not use_drb? then
diff --git a/railties/lib/breakpoint_client.rb b/railties/lib/breakpoint_client.rb index 11e5bcaf9d..8a8bc75594 100644 --- a/railties/lib/breakpoint_client.rb +++ b/railties/lib/breakpoint_client.rb @@ -88,9 +88,12 @@ loop do begin service.register_eval_handler do |code| result = eval(code, TOPLEVEL_BINDING) - result.extend(DRb::DRbUndumped) rescue nil - result - end + if result + DRbObject.new(result) + else + result + end + end service.register_collision_handler do msg = [ |