Last active
August 29, 2015 14:16
-
-
Save fetchak/dd0704ec621739a526da to your computer and use it in GitHub Desktop.
inconsistent 'next' behavior in byebug and byebug-pry
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[68, 77] in /home/www/Company/app/controllers/application_controller.rb | |
68: end | |
69: end | |
70: | |
71: def calculate_bill | |
72: debugger | |
=> 73: total_devices = current_user.account.device_count | |
74: if !current_user.account.plan_tier.nil? | |
75: if current_user.account.plan_tier_id != 0 | |
76: if !current_user.account.plan_tier.is_free? | |
77: total_devices = current_user.account.device_count | |
(byebug) next | |
[26, 35] in /home/fetchak/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.0.10/lib/action_controller/metal/instrumentation.rb | |
26: | |
27: ActiveSupport::Notifications.instrument("start_processing.action_controller", raw_payload.dup) | |
28: | |
29: ActiveSupport::Notifications.instrument("process_action.action_controller", raw_payload) do |payload| | |
30: result = super | |
=> 31: payload[:status] = response.status | |
32: append_info_to_payload(payload) | |
33: result | |
34: end | |
35: end | |
(byebug) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From: /home/www/Company/app/controllers/application_controller.rb @ line 73 ApplicationController#calculate_bill: | |
68: end | |
69: end | |
70: | |
71: def calculate_bill | |
72: binding.pry | |
=> 73: total_devices = current_user.account.device_count | |
74: if !current_user.account.plan_tier.nil? | |
75: if current_user.account.plan_tier_id != 0 | |
76: if !current_user.account.plan_tier.is_free? | |
77: total_devices = current_user.account.device_count | |
78: | |
[1] pry(#<DashboardController>)> next | |
From: /home/fetchak/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.0.10/lib/action_controller/metal/instrumentation.rb @ line 31 ActionController::Instrumentation#process_action: | |
17: def process_action(action, *args) | |
18: raw_payload = { | |
19: :controller => self.class.name, | |
20: :action => self.action_name, | |
21: :params => request.filtered_parameters, | |
22: :formats => request.formats.map(&:to_sym), | |
23: :method => request.method, | |
24: :path => (request.fullpath rescue "unknown") | |
25: } | |
26: | |
27: ActiveSupport::Notifications.instrument("start_processing.action_controller", raw_payload.dup) | |
28: | |
29: ActiveSupport::Notifications.instrument("process_action.action_controller", raw_payload) do |payload| | |
30: result = super | |
=> 31: payload[:status] = response.status | |
32: append_info_to_payload(payload) | |
33: result | |
34: end | |
35: end | |
[1] pry(#<DashboardController>)> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From: /home/www/Company/app/controllers/application_controller.rb @ line 73 ApplicationController#calculate_bill: | |
68: end | |
69: end | |
70: | |
71: def calculate_bill | |
72: binding.pry | |
=> 73: total_devices = current_user.account.device_count | |
74: if !current_user.account.plan_tier.nil? | |
75: if current_user.account.plan_tier_id != 0 | |
76: if !current_user.account.plan_tier.is_free? | |
77: total_devices = current_user.account.device_count | |
78: | |
[1] pry(#<DashboardController>)> next | |
From: /home/www/Company/app/controllers/application_controller.rb @ line 74 ApplicationController#calculate_bill: | |
69: end | |
70: | |
71: def calculate_bill | |
72: binding.pry | |
73: total_devices = current_user.account.device_count | |
=> 74: if !current_user.account.plan_tier.nil? | |
75: if current_user.account.plan_tier_id != 0 | |
76: if !current_user.account.plan_tier.is_free? | |
77: total_devices = current_user.account.device_count | |
78: | |
79: unless total_devices <= current_user.account.allowed_device_count | |
[1] pry(#<DashboardController>)> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment