== Announcing Version 1.0 ==
The backtracer has been around for a while now, and seems to have
done its job well enough to deserve a 1.0 mark.
== What Is It? ==
Whenever a Rails exception occurs, it spits out a backtrace full of
filenames and line numbers. Iâ??ve often thought, â??Wouldnâ??t it be nice
if I could just click on one of those and it would take me to the
problem?â? The textmate_backtracer plugin will make each of the
backtrace lines clickable in your browser.
== One Improvement ==
This release includes a small improvement from Geoff Grosenbach that
limits the loading of this plugin to development mode only. Geoff
notes that this “simplifies the backtrace when running tests”. Thanks
Geoff.
I imagine more people will be reading the list than the blog, so
here’s my comment/question:
I just installed it and it’s not working for me, there aren’t any
links. I tried the old version just to see if it works, same problem.
I don’t have anything overriding how I handle Exceptions. Any clue as
to what the problem might be?
Oh, also I’m getting “Rendering
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/templates/rescues/layout.rhtml
(500 Internal Error)”. Could that be the problem? I get that error
during an exception even without the plugin installed though.
== One Improvement ==
This release includes a small improvement from Geoff Grosenbach that
limits the loading of this plugin to development mode only. Geoff notes
that this “simplifies the backtrace when running tests”. Thanks Geoff.
What do you think of this further restriction in init.rb:
enable only on Macs in development mode
begin
if (ENV[‘RAILS_ENV’] == ‘development’) && (uname.chomp == “Darwin”)
require ‘textmate_backtracer’
end
end
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/
action_controller/templates/rescues/layout.rhtml
(500 Internal Error)". Could that be the problem? I get that error
during an exception even without the plugin installed though.
Pat
Sorry, Pat. I’m really not sure what’s going on there. I wish I
could help more.
begin
if (ENV[‘RAILS_ENV’] == ‘development’) && (uname.chomp ==
“Darwin”)
require ‘textmate_backtracer’
end
end
Jonathan
Cool idea, Jonathan. Up until your suggestion, I’ve had to add the
backtracer manually to each of my team projects, being careful not to
add it to subversion lest other (non-mac, non-textmate) users should
suffer unduely. This would be a “smart” way to sneak it in to
version control…
If no one has any objections, I’ll add that in.
I wonder if there’s any way to check for TextMate on Rails boot-up?