Skip to content

byebug: `rb_tr_error': rb_tracepoint_new not implemented #1450

@deepj

Description

@deepj

Hello,
I'm getting with truffleruby 1.0.0-rc8 on macOS 10.14 the following issue when I'm trying to use byebug (10.0.2). Since byebug is a recommended tool for debugging in Rails =>
https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-byebug-gem

It'd be worth to take a look at Tracepoint API support in C gems by Truffleruby.

How to reproduce it:

require 'byebug'

byebug

puts 'Hello byebug'

The error:

/Users/graal/slave/e/truffleruby/src/main/c/cext/ruby.c:in `rb_tr_error': rb_tracepoint_new not implemented (RuntimeError)
	from /Users/graal/slave/e/truffleruby/src/main/c/cext/ruby.c:in `rb_tracepoint_new'
	from ~/.gem/truffleruby/2.4.4/gems/byebug-10.0.2/ext/byebug/byebug.c:501:in `register_tracepoints'
	from ~/.gem/truffleruby/2.4.4/gems/byebug-10.0.2/ext/byebug/byebug.c:711:in `Start'
	from ~/.rubies/truffleruby-1.0.0-rc8/lib/truffle/truffle/cext.rb:221:in `execute_without_conversion'
	from ~/.rubies/truffleruby-1.0.0-rc8/lib/truffle/truffle/cext.rb:221:in `execute_with_mutex'
	from ~/.rubies/truffleruby-1.0.0-rc8/lib/truffle/truffle/cext_ruby.rb:36:in `start'
	from ~/.gem/truffleruby/2.4.4/gems/byebug-10.0.2/lib/byebug/attacher.rb:16:in `attach'
	from ~/.gem/truffleruby/2.4.4/gems/byebug-10.0.2/lib/byebug/attacher.rb:38:in `byebug'

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions