Eugen, I think this is an excellent idea.
It would be nice if it would be possible to send an os level signal (USR1/2?) to the application to toggle this feature on and off. ~Wayne On Mar 22, 2007, at 03:24 , Eugen Minciu wrote: > What I'd like to do is change what happens when you start script/ > server and during its execution. Unless it's started in Daemon mode, > I'd like it to support a more REPL-based style of development. By > adding an option to script/server and/or the appropriate places > (config/environment.rb and friends) you should get behavior like this: > > 1) When a sucessful request is made, the behavior remains the same as > now. (the results are logged on screen) > 2) When an error occurs, a page appears, similar to the 500.html page > that's currently shown in production. This page will instruct the > developer to check to console for additional details and a debugging > session. > 3) On the console, the error message that would have been displayed > inside the HTML form is presented to the user. > 4) He is then dropped in an Irb like environment, similar to what he'd > get if he were to set up a breakpoint. At this point, the server will > display an error message (something like 'Service temporarily > unavailable') on any other request that is made during the time of the > debugging session. > 5) After inspecting the problem (and hopefuly fixing things) he could > call something like 'continue', which would exit the IRB session and > let the server return to its normal state. > 6) Also, script/server should follow a similar behavior when meeting a > breakpoint, except for the HTML page which should be different. > 7) The HTML pages should give the developer useful info on where to > direct his text editor (what file and line, for breakpoints, as well > as errors). > Eugen. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
