Rubymine debugger fails for rspec

Answered

I cannot seem to debug rpsec anymore. I see the following error. please help

Running via Spring preloader in process 11723
Traceback (most recent call last):
	22: from -e:1:in `<main>'
	21: from /Users/xxx/.rvm/rubies/ruby-2.7.8/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require'
	20: from /Users/xxx/.rvm/rubies/ruby-2.7.8/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require'
	19: from /Users/xxx/.rvm/gems/ruby-2.7.8@xxx/gems/spring-2.1.0/lib/spring/application/boot.rb:19:in `<top (required)>'
	18: from /Users/xxx/.rvm/gems/ruby-2.7.8@xxx/gems/spring-2.1.0/lib/spring/application.rb:139:in `run'
	17: from /Users/xxx/.rvm/gems/ruby-2.7.8@xxx/gems/spring-2.1.0/lib/spring/application.rb:139:in `loop'
	16: from /Users/xxx/.rvm/gems/ruby-2.7.8@xxx/gems/spring-2.1.0/lib/spring/application.rb:145:in `block in run'
	15: from /Users/xxx/.rvm/gems/ruby-2.7.8@xxx/gems/spring-2.1.0/lib/spring/application.rb:175:in `serve'
	14: from /Users/xxx/.rvm/gems/ruby-2.7.8@xxx/gems/activesupport-6.1.7.6/lib/active_support/fork_tracker.rb:27:in `fork'
	13: from /Users/xxx/.rvm/gems/ruby-2.7.8@xxx/gems/activesupport-6.1.7.6/lib/active_support/fork_tracker.rb:8:in `fork'
	12: from /Users/xxx/.rvm/gems/ruby-2.7.8@xxx/gems/activesupport-6.1.7.6/lib/active_support/fork_tracker.rb:8:in `fork'
	11: from /Users/xxx/.rvm/gems/ruby-2.7.8@xxx/gems/activesupport-6.1.7.6/lib/active_support/fork_tracker.rb:10:in `block in fork'
	10: from /Users/xxx/.rvm/gems/ruby-2.7.8@xxx/gems/spring-2.1.0/lib/spring/application.rb:212:in `block in serve'
	 9: from /Users/xxx/.rvm/gems/ruby-2.7.8@xxx/gems/spring-2.1.0/lib/spring/application.rb:276:in `invoke_after_fork_callbacks'
	 8: from /Users/xxx/.rvm/gems/ruby-2.7.8@xxx/gems/spring-2.1.0/lib/spring/application.rb:276:in `each'
	 7: from /Users/xxx/.rvm/gems/ruby-2.7.8@xxx/gems/spring-2.1.0/lib/spring/application.rb:277:in `block in invoke_after_fork_callbacks'
	 6: from /Users/xxx/.spring.rb:3:in `block in <top (required)>'
	 5: from /Users/xxx/.spring.rb:3:in `each'
	 4: from /Users/xxx/.spring.rb:5:in `block (2 levels) in <top (required)>'
	 3: from /Users/xxx/.spring.rb:5:in `load'
	 2: from /Users/xxx/.rvm/gems/ruby-2.7.8@xxx/gems/ruby-debug-ide-2.3.17/lib/ruby-debug-ide/multiprocess/starter.rb:12:in `<top (required)>'
	 1: from /Users/xxx/.rvm/gems/ruby-2.7.8@xxx/gems/ruby-debug-ide-0.7.3/lib/ruby-debug-ide/multiprocess/pre_child.rb:31:in `pre_child'
/Users/xxx/.rvm/gems/ruby-2.7.8@xxx/gems/ruby-debug-ide-0.7.3/lib/ruby-debug-ide/multiprocess/pre_child.rb:51:in `start_debugger': undefined method `trace_to_s' for #<Debase::MultiProcess::SharedDebuggerOptions:0x000000012c5840a8> (NoMethodError)
0
2 comments

Hello,

Could you please check how it goes if you disable Spring for debug?

0

I had this error as well (without spring running)…

you need to remove the original gem in order to not conflict with jetbrain's fork:

sudo rm -rif /Users/xxx/.rvm/gems/ruby-2.7.8@xxx/gems/ruby-debug-ide-0.7.3

then it should work right away.

0

Please sign in to leave a comment.