Skip to content

Instantly share code, notes, and snippets.

@kyledrake
Created August 23, 2011 21:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kyledrake/1166551 to your computer and use it in GitHub Desktop.
Save kyledrake/1166551 to your computer and use it in GitHub Desktop.
Debugging Kirk $stderr issue
require 'rubygems'
require 'sinatra/base'
require 'kirk'
require 'ruby-debug'
run Sinatra.new {
get '/' do
# debugger
$stdout.puts 'Testing $stdout!'
$stderr.puts 'Testing $stderr!'
'hi'
end
}
# To run - Save this file as config.ru, and run: rackup -s Kirk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment