summaryrefslogtreecommitdiff
path: root/config/spring.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/spring.rb')
-rw-r--r--config/spring.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/config/spring.rb b/config/spring.rb
index c9119b40c08..0092d0fd1b0 100644
--- a/config/spring.rb
+++ b/config/spring.rb
@@ -4,3 +4,13 @@
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