Add debugger config

This commit is contained in:
Daniel Schädler 2022-05-20 00:17:47 +02:00
parent afa9a26d93
commit 3282d2d29e
Signed by: Malaber
GPG Key ID: 4BB175A9617E4B11
1 changed files with 8 additions and 0 deletions

View File

@ -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