Skip to content

Instantly share code, notes, and snippets.

@AndrewO
Created August 5, 2008 01:04
Show Gist options
  • Save AndrewO/4010 to your computer and use it in GitHub Desktop.
Save AndrewO/4010 to your computer and use it in GitHub Desktop.
ruby >& ~/Library/Logs/tm_treetop_debug <<END &
require "#{ENV["TM_SUPPORT_PATH"]}/lib/ui"
begin
require "$TM_BUNDLE_SUPPORT/syntax_tree_viewer"
s = SyntaxTreeViewer.new_with_unknown_grammar
s.dialog if s
rescue Exception => error
TextMate::UI.alert(:warning, "You’ve discovered a bug", "Please report the following text: #{error}\n\n#{error.backtrace.join(%Q{\n})}")
end
END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment