Skip to content

Instantly share code, notes, and snippets.

@kenichi
Created November 13, 2012 19:26
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 kenichi/4067829 to your computer and use it in GitHub Desktop.
Save kenichi/4067829 to your computer and use it in GitHub Desktop.

sinatra and pry are not friends

i was trying this...

require 'pry'
require 'sinatra'

get '/' do
  binding.pry
  "hi"
end

like so...

$ ruby sinatra.rb 
== Sinatra/1.3.3 has taken the stage on 4567 for development with backup from Thin
>> Thin web server (v1.5.0 codename Knife)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:4567, CTRL+C to stop

and i hit it with this...

$ curl localhost:4567
curl: (52) Empty reply from server

and saw this...

...
>> Listening on 0.0.0.0:4567, CTRL+C to stop
Illegal instruction: 4
$ echo $?
132

wat?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment