 |
Forums |
Admin Start New Thread
| Message: 8589 |
 |
BY: Bakki Kudva (bakki) DATE: 2006-03-31 18:23 SUBJECT: Debugging rails apps I am trying debug a rails app with mr_guid. Here's what I am experiencing.
I start the debugger with mr_guid script/server to launch webrick in mr_guid.
I add a source file of a controller and set a breakpoint in it. I hit the 'Run' key.
Now I would expect that execution will continute until my breakpoint is hit. Instead mr_guid stops at various points where exceptions are raised as below. I have to hit Run each time.
1. drb.rb -> raise DRbServerNotFound unless server
2. fileutils (line#219) Dir.mkdir path
3 ---- " ----
Now WeBrick is up and running on port 3000.
I now enter the url in the browser for the controler I have set the breakpoint in.
Again I get all the stops and need to hit run each time.
1. filehandler.rb (line#250) raise HTTPStatus::Not found, "'#{req.path} ' not found."
2. filehandler.rb (#34) raise HTTPStatus::NotModified
3. - " -
4. - " -
5. -" -
6. -" -
7. httpserver.rb (#55) raise HTTPStatus::EOFError if time out <=0
Now my page is showing in browser.
I click on the action where I have set the breakpoint.
Stops at ->
base.rb (322) raise ActionView Error "no rhtml, rjs or delegate template found for #{template_path}
I hit continue and mr_guid never returns...Staus shown on the bottom says continuing...
Why does mr-guid stop at every exception raised in the framework which does not stop execution normally? It should only stop at my breakpoint in the source as any debugger would. Zend Studio's php debugger does exactly that and it is lightning quick. I realize that the slowness in this case is that of ruby debugger which you are wrapping with mr_guid.
I think there is great potential here and I love the feel and the user interface of mr_guid. Just a couple of other nitpicks. When the debugger is running the Start Debugger and Run buttons should be unhighlighted ...or the run button should turn into a stop button. Thanks for the debugger and keep up the great work.
-bakki | |
Thread View
Post a followup to this message
|
 |