Permalink
Browse files

Enable byebug support for pow.

  • Loading branch information...
Eric-Guo committed Apr 20, 2017
1 parent fe38f86 commit b995c82103d324f480d3c76a8a6943feee6f9c23
Showing with 7 additions and 2 deletions.
  1. +1 −1 Gemfile
  2. +1 −1 Gemfile.lock
  3. +5 −0 config/initializers/byebug.rb
View
@@ -34,7 +34,7 @@ gem 'jbuilder', '~> 2.5'
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
gem 'byebug', platforms: [:ruby, :mri, :mingw, :x64_mingw]
# Adds support for Capybara system testing and selenium driver
gem 'capybara', '~> 2.13.0'
gem 'selenium-webdriver'
View
@@ -1,6 +1,6 @@
GIT
remote: https://github.com/rails/sass-rails.git
revision: dfbcc6a53653d8908007e26324a0f299f026ec4f
revision: eafddf6eeecc7e8b3fb929e406cb64e401b759e3
specs:
sass-rails (6.0.0.beta1)
railties (>= 4.0.0, < 5.1)
@@ -0,0 +1,5 @@
if Rails.env.development? && ENV['BYEBUG_SERVER_FOR_POW'] == 'enable'
require 'byebug/core'
Byebug.start_server 'localhost', ENV.fetch('BYEBUG_SERVER_PORT', 1048).to_i
# run `byebug -R localhost:1048` to attach debug
end

0 comments on commit b995c82

Please sign in to comment.