There’s one last trick we can use to help us debug our apps. A plugin
called Rails Footnotes will turn the lines from the stack trace into
clickable links that will open the appropriate file in TextMate. To
install it, run the following line from your app’s directory (you’ll
need to have git installed on your machine).
git clone git://github.com/drnic/rails-footnotes.git vendor/plugins/footnotes
rm -rf vendor/plugins/footnotes/.git
Now, you can just click a line in the stack trace and immediately see
the file in TextMate which makes finding your bugs even easier.
阅读(1271) | 评论(0) | 转发(0) |