Permalink
Browse files

Turn on remote debugging if we're running the tests in jruby and DEBU…

…G_JAVA was set.
  • Loading branch information...
1 parent a162fa4 commit 7272ba1846abe0a94413329ff1531c4b07896e8c @jvshahid jvshahid committed Jun 17, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 Rakefile
View
@@ -145,7 +145,12 @@ end
require 'tasks/test'
+task :java_debug do
+ ENV['JAVA_OPTS'] = '-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y' if java? && ENV['JAVA_DEBUG']
+end
+
Rake::Task[:test].prerequisites << :compile
+Rake::Task[:test].prerequisites << :java_debug
Rake::Task[:test].prerequisites << :check_extra_deps unless java?
if Hoe.plugins.include?(:debugging)
['valgrind', 'valgrind:mem', 'valgrind:mem0'].each do |task_name|

0 comments on commit 7272ba1

Please sign in to comment.