Skip to content

Commit

Permalink
[Truffle] JT: Add --jdebug to debug Java "remotely".
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Mar 2, 2015
1 parent ff02270 commit 7490f74
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tool/jt.rb
Expand Up @@ -157,6 +157,10 @@ def run(*args)
jruby_args += %w[-J-XX:+UnlockDiagnosticVMOptions -J-XX:CompileCommand=print,*::callRoot]
end

if args.delete('--jdebug')
jruby_args += %w[-J-agentlib:jdwp=transport=dt_socket,server=y,address=8000,suspend=y]
end

if args.delete('--server')
jruby_args += %w[-Xtruffle.instrumentation_server_port=8080 -Xtruffle.passalot=1]
end
Expand Down

0 comments on commit 7490f74

Please sign in to comment.