Skip to content

Instantly share code, notes, and snippets.

@zdrummond
Created September 12, 2012 02:02
Show Gist options
  • Select an option

  • Save zdrummond/3703726 to your computer and use it in GitHub Desktop.

Select an option

Save zdrummond/3703726 to your computer and use it in GitHub Desktop.
Pry debug failed on class method
[10] pry(Control):1> break Job.list
Breakpoint 1: /Users/zdrummond/bia/Pocoa_Rails/app/ops/control.rb @ line 159 (Enabled) :
156: new( j[:scope_id], j[:uuid], j[:time], j[:bucket], j[:manifest] )
157: end
158:
=> 159: def self.list
160: raw = RestClient.get "#{WEB_URL}/statuses"
161: resp = JSON.parse raw, symbolize_names: true
162: resp.map do |h|
[11] pry(Control):1> Job.list
Breakpoint 1. First hit.
Frame number: 0/4
before_session hook failed: TypeError: bind argument must be an instance of Control::Object
/Users/zdrummond/bia/Pocoa_Rails/app/ops/control.rb:159:in `bind'
(see _pry_.hooks.errors to debug)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment