byebug: When use `byebug` and `continue` once, Ruby process get slow.
After use byebug and continue.
Page load time get slow. Webrick’s ruby process got slow maybe.
Before use byebug

After use

Gemfile is just
source 'https://rubygems.org'
gem 'pry-rails'
group :development do
gem 'rack-mini-profiler'
end
group :test do
gem 'sqlite3'
end
group :development, :test do
gem 'pry-byebug'
end
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.1'
gem 'pg'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.1.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc
group :development, :test do
gem 'byebug'
gem 'web-console', '~> 2.0'
#gem 'spring'
end
I’ve open issue at pry-byebug, but This relate to byebug maybe.
This is linked this issue.
https://github.com/deivid-rodriguez/pry-byebug/issues/61#issuecomment-102660264
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 43 (13 by maintainers)
Commits related to this issue
- remove pry-byebug byebug + pry == slow dev env. Source: https://github.com/deivid-rodriguez/byebug/issues/144 — committed to fameandpartners/website by tiagoamaro 9 years ago
- remove pry-byebug byebug + pry == slow dev env. Source: https://github.com/deivid-rodriguez/byebug/issues/144 — committed to fameandpartners/website by tiagoamaro 9 years ago
This still exists with local development using byebug (9.0.6) and simple
byebugcommandBefore
After
Ah, I should’ve mentioned. I’m using this initializer for remote debugging while using Unicorn as an application server:
I’m not sure if I’ve missed anything obvious… is there another way to make Byebug work with other app servers other than remote debugging like this?
@fbernier thanks but this still seems to be an issue on 9.0.3
Running Byebug 9.0.6 on Rails 5.0.0.1 (Ruby 2.3.0p0), and as soon as I enable it, my page load times increase dramatically. Before:
After:
I’m not using any
byebugstatements in the code.