From 70ac560e42644938392381ecd52efd7fb0260323 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 28 Apr 2007 15:57:29 +0000 Subject: Removed breakpointer and Binding.of_caller in favor of relying on ruby-debug by Kent Sibilev since the breakpointer has been broken since Ruby 1.8.4 and will not be coming back [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6611 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/README | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'railties/README') diff --git a/railties/README b/railties/README index 7b0265321a..b0e535222e 100644 --- a/railties/README +++ b/railties/README @@ -69,29 +69,27 @@ automatically display debugging and runtime information to these files. Debuggin info will also be shown in the browser on requests from 127.0.0.1. -== Breakpoints +== Debugger -Breakpoint support is available through the script/breakpointer client. This -means that you can break out of execution at any point in the code, investigate +Debugger support is available through the debugger command when you start your Mongrel or +Webrick server with --debugger. This means that you can break out of execution at any point in the code, investigate and change the model, AND then resume execution! Example: class WeblogController < ActionController::Base def index @posts = Post.find(:all) - breakpoint "Breaking out from the list" + debugger end end So the controller will accept the action, run the first line, then present you -with a IRB prompt in the breakpointer window. Here you can do things like: - -Executing breakpoint "Breaking out from the list" at .../webrick_server.rb:16 in 'breakpoint' +with a IRB prompt in the server window. Here you can do things like: >> @posts.inspect => "[#nil, \"body\"=>nil, \"id\"=>\"1\"}>, #\"Rails you know!\", \"body\"=>\"Only ten..\", \"id\"=>\"2\"}>]" - >> @posts.first.title = "hello from a breakpoint" - => "hello from a breakpoint" + >> @posts.first.title = "hello from a debugger" + => "hello from a debugger" ...and even better is that you can examine how your runtime objects actually work: @@ -100,7 +98,7 @@ Executing breakpoint "Breaking out from the list" at .../webrick_server.rb:16 in >> f. Display all 152 possibilities? (y or n) -Finally, when you're ready to resume execution, you press CTRL-D +Finally, when you're ready to resume execution, you enter "cont" == Console -- cgit v1.2.3