From 3282d2d29e737bc14debe92b563186575af3de9e Mon Sep 17 00:00:00 2001 From: Malaber Date: Fri, 20 May 2022 00:17:47 +0200 Subject: [PATCH] Add debugger config --- config/spring.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config/spring.rb b/config/spring.rb index c5933e4..dfdb44f 100644 --- a/config/spring.rb +++ b/config/spring.rb @@ -6,3 +6,11 @@ tmp/restart.txt tmp/caching-dev.txt ].each { |path| Spring.watch(path) } +Spring.after_fork do + if ENV['DEBUGGER_STORED_RUBYLIB'] + ENV['DEBUGGER_STORED_RUBYLIB'].split(File::PATH_SEPARATOR).each do |path| + next unless path =~ /ruby-debug-ide/ + load path + '/ruby-debug-ide/multiprocess/starter.rb' + end + end +end \ No newline at end of file