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 before

After use after

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

Most upvoted comments

This still exists with local development using byebug (9.0.6) and simple byebug command

Before

Completed 200 OK in 171ms (Views: 165.0ms | ActiveRecord: 0.9ms)

After

Completed 200 OK in 8468ms (Views: 6950.9ms | ActiveRecord: 291.8ms)

Ah, I should’ve mentioned. I’m using this initializer for remote debugging while using Unicorn as an application server:

if Rails.env.development?
  require 'byebug/core'
  Byebug.start_server 'localhost', 3001
end

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:

12:50:53 log.1  | Started GET "/ext_users/1/video_sessions" for 127.0.0.1 at 2016-10-27 12:50:53 
12:50:53 log.1  | Completed 200 OK in 184ms (Views: 103.5ms | ActiveRecord: 6.1ms)

After:

12:49:51 log.1  | Started GET "/ext_users/1/video_sessions" for 127.0.0.1 at 2016-10-27 12:49:51 +0200
12:50:00 log.1  | Completed 200 OK in 3478ms (Views: 2097.6ms | ActiveRecord: 106.8ms)

I’m not using any byebug statements in the code.