Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Tweak spec debug target

  • Loading branch information...
commit 87f9cf49897418582d3d88f28d8aa3984738bde9 1 parent 6a83be2
Peter McLain authored
Showing with 12 additions and 3 deletions.
  1. +11 −2 debug.mspec
  2. +1 −1  rakelib/spec.rake
View
13 debug.mspec
@@ -3,10 +3,19 @@
# This can be used with the mspec command line to trap any exceptions
# raised during the running of MSpecs. To use:
#
-# $ spec/mspec/bin/mspec -B debug.mspec -t m spec/rubyspec/language/constants_spec.rb
+# $ spec/mspec/bin/mspec -B debug.mspec \
+# -T -d \
+# -t m spec/rubyspec/language/constants_spec.rb
#
+# The "-B debug.mspec" loads this file
+
+# The "-T -d" ensures maglev is started with the -d option (which will drop
+# into topaz on a pause or error).
+#
+
+
# You can customize the block to filter out exceptions you don't want, etc.
-if defined? Maglev
+if defined? Maglev # This file is also read by the MRI driver process
Exception.install_debug_block do |e|
puts "=== caught #{e.inspect}"
nil.pause
View
2  rakelib/spec.rake
@@ -5,7 +5,7 @@ namespace :spec do
SPEC_DIR = File.dirname(__FILE__) + '/../spec'
RSPEC_DIR = "#{SPEC_DIR}/rubyspec/1.8/"
MSPEC_CMD = "#{SPEC_DIR}/mspec/bin/mspec"
- DEBUG = "-B #{MAGLEV_HOME}/debug.mspec" # flags to include the debug stuff
+ DEBUG = "-B #{MAGLEV_HOME}/debug.mspec -T -d"
desc "Run the continuous integration specs against MRI"
task :mri do
Please sign in to comment.
Something went wrong with that request. Please try again.