Skip to content

Commit 659e8bb

Browse files
author
mkrauskopf
committed
Switching to JRuby 1.1.2 --debug parameter
git-svn-id: svn://rubyforge.org/var/svn/debug-commons/jruby-debug/trunk@490 81809f3d-796b-46d8-ad85-64d9ccf65f30
1 parent c8a6bfb commit 659e8bb

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

README

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ $ jruby -S gem install -r ruby-debug -v 0.10.1 --ignore-dependencies
4141
The usage is then the same as with native ruby-debugger, but you might need to
4242
force JRuby which has to run in interpreted mode. Simplest usage is:
4343

44-
$ jruby -J-Djruby.reflection=true -J-Djruby.compile.mode=OFF -S rdebug <your-script>
44+
$ jruby --debug -S rdebug <your-script>
4545

4646
Or easier, you might create 'jruby-dm' ('dm' for 'debugger-mode'):
4747

4848
$ cat ~/bin/jruby-dm
4949
#!/bin/bash
50-
jruby -J-Djruby.reflection=true -J-Djruby.compile.mode=OFF "$@"
50+
jruby --debug "$@"
5151

5252
Then you may run just as you used to:
5353

README-DEV

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ and JRuby team is fixing bugs filed by us quite quickly.
1414
You are ready to run all tests, e.g.:
1515

1616
$ jruby test/test-help.rb
17-
$ jruby -J-Djruby.reflection=true -J-Djruby.compile.mode=OFF -S rake test_base
17+
$ jruby --debug -S rake test_base
1818

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ task :prepare_tests do
6565
runner = 'runner.sh'
6666
sh "svn cat svn://rubyforge.org/var/svn/ruby-debug/tags/ruby-debug-0.10.1/runner.sh > #{runner}" unless File.exists?(runner)
6767
text = File.read('runner.sh')
68-
File.open(runner, 'w') {|f| f.write(text.gsub(/-ruby/ , '-jruby -J-Djruby.reflection=true -J-Djruby.compile.mode=OFF'))}
68+
File.open(runner, 'w') {|f| f.write(text.gsub(/-ruby/ , '-jruby --debug'))}
6969
File.chmod(0755, runner)
7070

7171
# - prepare default customized test/config.private.yaml suitable for JRuby

0 commit comments

Comments
 (0)