我不能再放置debugger
在我的控制器方法中。我用 Chrome 的 Postman 测试 API 调用。方法都可以工作,但是如果我包含debugger
在一个方法中(不管是哪个方法,也不管我debugger
在方法中的位置)并使用 Postman 调用该方法,我会收到错误消息。以前从来都不是问题。有人可以帮忙找出原因吗?
Completed 500 Internal Server Error in 1335ms (ActiveRecord: 24.0ms)
SystemExit (exit):
app/controllers/api/v1/organizations_controller.rb:35:in `update'
Rendered /usr/local/rvm/gems/ruby-2.3.0/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (190.6ms)
Rendered /usr/local/rvm/gems/ruby-2.3.0/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (51.3ms)
Rendered /usr/local/rvm/gems/ruby-2.3.0/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (6.6ms)
Rendered /usr/local/rvm/gems/ruby-2.3.0/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (321.7ms)