Kevin the Harmless ([info]keturn) wrote,

tomato curry [company lunch]

I've been working with Ruby on a semi-regular basis for a while now, and there's something that's still bothering me. Well, to be honest, there are a number of things, but one of them in particular seems like it should be solvable.

Here's the last few frames of a typical Ruby on Rails traceback:

And here are the last few frames of a typical Nevow traceback in Python:

It's not just the web environment either, you can make similar comparisons between ipython and irb.

Is there any help to be had? Or should I tell my office manager to get one of those inflatable punching bags to smash the next time someone sends me one of these stupid crippled ruby tracebacks?

Tags: debugging, hacker, lazyweb, nevow, python, rails, ruby, tracebacks, webdev

  • Post a new comment

    Error

    Your IP address will be recorded 

  • 4 comments

[info]demonbane

February 9 2008, 23:12:00 UTC 4 years ago

I know that it's possible to customize the view that Rails uses for showing the trace, but I don't know where exactly it's located. Though displaying error in the context of the code should really be handled by your IDE/editor. The Rails mode that I use for Emacs will do essentially the same thing that you show in your Nevow example above, except that I can just start typing and modifying code right then and there.

[info]keturn

February 9 2008, 23:22:49 UTC 4 years ago

I'm not always running rails through emacs. The tracebacks I read may not be from an instance I'm running at all, they may be passed on by another developer. If they only pass line numbers and not source excerpts, it's impossible for my emacs to figure out if their line numbers correspond to my line numbers. (Yes, bug reports should always have accompanying versions, but even so, one of us may have added a few lines of debugging information or something which would change the line count.)

And none of that lets you see what values were passed in to the method that crashed.

Anonymous

February 10 2008, 07:35:16 UTC 4 years ago

it's a sad world, with rails in twisted feed

[info]keturn

February 10 2008, 17:24:19 UTC 4 years ago

Just pretend I used Arrow or EventMachine as an example instead of Rails. ;)
Create an Account
Forgot your login or password?
Facebook Twitter More login options
English • Español • Deutsch • Русский…