Skip to content

Instantly share code, notes, and snippets.

@DianthuDia
Created September 19, 2012 10:02
Show Gist options
  • Save DianthuDia/3748803 to your computer and use it in GitHub Desktop.
Save DianthuDia/3748803 to your computer and use it in GitHub Desktop.
railsのvim-rubyをデバッグする場合のパッチ
--- /var/folders/5y/9cd64vmj6dv7vm7cp8f3vxsm0000gn/T//GqXAr7_rubycomplete.vim 2012-09-19 19:01:34.000000000 +0900
+++ autoload/rubycomplete.vim 2012-09-19 18:57:25.000000000 +0900
@@ -451,7 +451,8 @@ class VimRubyCompletion
#eval( "Rails::Initializer.run" ) #not necessary?
VIM::command('let s:rubycomplete_rails_loaded = 1')
dprint "rails loaded"
- rescue Exception
+ rescue Exception => e
+ VIM::command("echoe %s" % e.backtrace.join(' ') )
dprint "Rails Error %s" % $!
VIM::evaluate( "s:ErrMsg('Error loading rails environment')" )
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment