-rtracer doesn't work --------------------- Key: JRUBY-3830 URL: http://jira.codehaus.org/browse/JRUBY-3830 Project: JRuby Issue Type: Bug Components: Interpreter Affects Versions: JRuby 1.3.1 Reporter: Rib Rdb
Under MRI, passing -rtracer turns on the tracer, but it does nothing in JRuby: $ jruby -rtracer -e 'puts :hi' hi $ ruby -rtracer -e 'puts :hi' #0:-e:1::-: puts :hi #0:-e:1:Kernel:>: puts :hi #0:-e:1:Symbol:>: puts :hi #0:-e:1:Symbol:<: puts :hi #0:-e:1:IO:>: puts :hi hi#0:-e:1:IO:<: puts :hi #0:-e:1:IO:>: puts :hi #0:-e:1:IO:<: puts :hi #0:-e:1:Kernel:<: puts :hi This seems to be because caller(0) is incorrect for files required with -r: $ echo puts caller(0).inspect >test.rb $ ruby -rtest -e ["./test.rb:1"] $ jruby -rtest -e ["test.rb:1", "test.rb:1"] -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email