Starts a debugging session if ruby-debug has been loaded (call waves-server —debugger to do load it).
[Source]
# File lib/ext/kernel.rb, line 4 4: def debugger 5: Waves::Logger.info "Debugger invoked but not loaded. Start server with --debugger to enable." 6: end
‘engine’ exists to provide a quick and easy (and MRI-compatible!) interface to the RUBY_ENGINE constant
# File lib/ext/kernel.rb, line 11 11: def engine; defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby'; end
# File lib/ext/kernel.rb, line 14 14: def safe_trap(*signals) 15: signals.each { |s| trap(s) { yield } } 16: Thread.new { loop { sleep 1 } } if RUBY_PLATFORM =~ /mswin32/ 17: end
[Validate]