Commit 41d6ffa3 authored by James Fargher's avatar James Fargher

Merge branch 'rubymine-spring-debug-support' into 'master'

Fix spring configuration to allow RubyMine execute the debugger

See merge request gitlab-org/gitlab!39482
parents f8e5b6c2 b9d90ff9
...@@ -4,3 +4,13 @@ ...@@ -4,3 +4,13 @@
tmp/restart.txt tmp/restart.txt
tmp/caching-dev.txt tmp/caching-dev.txt
).each { |path| Spring.watch(path) } ).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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment