Browse files

ugly ruby-debug-ide patch to help me debug the debugger as it crashes…

… quite often
  • Loading branch information...
1 parent e475a65 commit 930f335be8c356f86b9034426b1c617b4b9b916c @kaiiserni committed Jan 4, 2012
Showing with 10 additions and 4 deletions.
  1. +5 −1 lib/ruby-debug-ide/xml_printer.rb
  2. +5 −3 ruby-debug-ide.gemspec
View
6 lib/ruby-debug-ide/xml_printer.rb
@@ -92,7 +92,11 @@ def print_contexts(contexts)
def print_context(context)
current = 'current="yes"' if context.thread == Thread.current
- print "<thread id=\"%s\" status=\"%s\" #{current}/>", context.thnum, context.thread.status
+ begin
+ print "<thread id=\"%s\" status=\"%s\" #{current}/>", context.thnum, context.thread.status
+ rescue
+ print "ALERT! I wanted to crash, but I am patched, so I didn't. This is a reference to help me fix this more cleanly: ", context.inspect
+ end
end
def print_variables(vars, kind)
View
8 ruby-debug-ide.gemspec
@@ -30,7 +30,7 @@ EOF
spec.version = RUBY_DEBUG_IDE_VERSION
- spec.author = "Markus Barchfeld, Martin Krauskopf, Mark Moseley, JetBrains RubyMine Team"
+ spec.author = "Markus Barchfeld, Martin Krauskopf, Mark Moseley, JetBrains RubyMine Team", "kaiiserni"
spec.email = "rubymine-feedback@jetbrains.com"
spec.platform = Gem::Platform::RUBY
spec.require_path = "lib"
@@ -40,11 +40,13 @@ EOF
spec.extensions << "ext/mkrf_conf.rb" unless ENV['NO_EXT']
spec.add_dependency("rake", ">= 0.8.1")
-
+
spec.required_ruby_version = '>= 1.8.2'
spec.date = DateTime.now
spec.rubyforge_project = 'debug-commons'
-
+
+ spec.post_install_message = "!!! I am patched and I don't crash, even if I should, I don't, but don't take me seriously and install/try the official version first... !!!"
+
# rdoc
spec.has_rdoc = false
end

0 comments on commit 930f335

Please sign in to comment.