debugger hangs at eval statement

I'm trying to see how Rails at ``startup time'' creates Javascripts within
the Clientside of the browser.
rails s #starting my program
I've used both Byebug within Ruby code and Firefoxe's debugger within the
browser.
==> Firefox's debug shows me the generated scripts like jquery etc but this
is after the fact: the code producing the scripts has already executed.
I want to observe how/when it generates the script and how various
callbacks are registered particularly in jquery. Eg plot function using
flot.
==> Byebug stops when the Ruby code does an eval expression when tracing from config/application.rb:
I used byebug's set linetrace to observe the following:
Tracing:
/Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:33
options = {}
Tracing:
/Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:34 if
config =~ /.ru$/
Tracing:
/Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:35
cfgfile = ::File.read(config)
Tracing:
/Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:36 if
cfgfile[/^#(.)/] && opts
Tracing:
/Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:39
cfgfile.sub!(/^END\n.\Z/m, '')
Tracing:
/Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:40 app
= new_from_string cfgfile, config
Tracing:
/Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:49 eval
"Rack::Builder.new {\n" + builder_script + "\n}.to_app",
Tracing:
/Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:49 eval
"Rack::Builder.new {\n" + builder_script + "\n}.to_app",
where the eval statement just sits and waits. At that point I had to abort
the program at startup using Cntl C
Other Eval statements like the above has the same behavior.
Is there a work around? so that I can continue viewing the source code's execution paths?
Or is it more of a hit-miss with avoidance attempts to Eval statements  to continue debugging?
Thank you for considering this.
Dave

@DaveBone I have trouble understanding this issue. So the problem is that tracing stops at same point. Is it possible that it stops because the interpreter is not running any more Ruby code? More importantly, can you provide me with a way to observe the bug myself?

David,
Thank you for responding.
Here is the google group "Ruby on Rails: Talk" that i posted asking for some advice.
The Subject: "Some tracing guidance appreciated to understand how Ruby registers javascript in Rails."

Here is its initial extracted matter from that thread:
Hi Group,
I'm trying to see how Rails at ``startup time'' creates  Javascripts within the Clientside of the browser.

 rails s #starting my program

I've used both Byebug within Ruby code and Firefoxe's debugger within the browser.
==> Firefox's debug shows me the generated scripts like jquery etc but this is after the fact: the code producing the scripts has already executed.
I want to observe how/when it generates the script and how various callbacks are registered particularly in jquery. Eg plot function using flot.
==> Byebug stops when the Ruby code does an eval expression when tracing from config/application.rb :
I used byebug's  set linetrace to observe the following:
Tracing: /Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:33       options = {}
Tracing: /Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:34       if config =~ /.ru$/
Tracing: /Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:35         cfgfile = ::File.read(config)
Tracing: /Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:36         if cfgfile[/^#\(.)/] && opts
Tracing: /Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:39         cfgfile.sub!(/^END\n.\Z/m, '')
Tracing: /Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:40         app = new_from_string cfgfile, config
Tracing: /Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:49       eval "Rack::Builder.new {\n" + builder_script + "\n}.to_app",
Tracing: /Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:49       eval "Rack::Builder.new {\n" + builder_script + "\n}.to_app",
where the eval statement just sits and waits. At that point I had to abort the program at startup using Cntl C
My questions so far are:

how to trace  outside programs  called by Ruby like Rack::Builder'' above to continue my investigations. Other more powerfull debug tracers to use? DTRACE?
1.5) Can break points be placed against the source code before the dynamic tracing begins? or have a pre-programmed script set the breakpoints at runtime?

how is javascript executed by ``Ruby start up''  to manufacture the local registered scripts: ie, the various crossovers between Ruby and Javascript contexts

Any pointers to documents/websites/forums where these questions allow me to continue my investigations is appreciated
I thank you in advance for your ``eyes and ears'' evaluating my request
Dave
The above code and areas should provide you with a starting point for your debugging.
Good luck with it.
If solved it becomes a wonderful tracing facility to observe ruby code execution paths to be filtered by awk or grep
D

On May 12, 2016, at 12:08 PM, David Rodríguez<EMAIL_ADDRESS>wrote:
@DaveBone I have trouble understanding this issue. So the problem is that tracing stops at same point. Is it possible that it stops because the interpreter is not running any more Ruby code? More importantly, can you provide me with a way to observe the bug myself?
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

@DaveBone Thank you. This looks very similar to your initial message... which doesn't really answer my question. In any case, a support group seems definitely a better place for this kind of questions.
I'll close this for now. If you have a set of commands I can run to see the bug you are seeing, please share them and reopen the issue.

Hi David,
I thought the information given was adequate for u to see the bug yourself.

the rails  framework is being traced and the start point to see the line tracing application.rb

I do not mind helping out.
But before i do, my question to u is:
Given that i'm using the rails development framework to trace by debug:
a) will u investigation the problem reported debugging the framework itself given the appropriate versions etc of ruby and rails within its development environment?
or
b) are u just looking for just a user only piece of code to reproduce the problem?
If b) then lets consider the issue closed ;{
if a) is adequate for your investigation  :}

I will gen up a very simple app with the latest ruby, rails versions framework.
I'll o the same instructions as initially stated to watch the source code trace flow outputted.

If same result happens (Byebug stops outputting source code line traces), I will reopen the issue with the following instructions:
a) Provide the rails commands to gen up the simple app and its framework with the versions used
b) Snapshot  the application.rb code where the line trace command is placed
c) Provide the outputted Byebug source code lines traced
D

On May 13, 2016, at 3:23 AM, David Rodríguez<EMAIL_ADDRESS>wrote:
@DaveBone Thank you. This looks very similar to your initial message... which doesn't really answer my question. In any case, a support group seems definitely a better place for this kind of questions.
I'll close this for now. If you have a set of commands I can run to see the bug you are seeing, please share them and reopen the issue.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

David,
The other question i have to help out is:
How do i go about to see whether the framework has possibly disabled Byebug from outputting the traced source lines, and the rails/rack server  itself waiting and not responding?
These are the symptoms when using Byebug and its set line trace command.
What commands or tools do u suggest that i use to investigate these abnormalities?
The support group was very responsive but not appropriate for this type of problem and suggested getting help from Byebug.
The larger picture that i was looking towards is the executed trace paths by the framework.
D

On May 13, 2016, at 3:23 AM, David Rodríguez<EMAIL_ADDRESS>wrote:
@DaveBone Thank you. This looks very similar to your initial message... which doesn't really answer my question. In any case, a support group seems definitely a better place for this kind of questions.
I'll close this for now. If you have a set of commands I can run to see the bug you are seeing, please share them and reopen the issue.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

@DaveBone Create a simple dummy application and give me a set of steps I can run in my machine to see this unresponsiveness. Can you do that?

Yep.
give me  a couple of days.
first i'll try it out before sending the commands to u.
d
Sent from my iPad

On May 13, 2016, at 11:01 AM, David Rodríguez<EMAIL_ADDRESS>wrote:
@DaveBone Create a simple dummy application and give me a set of steps I can run in my machine to see this unresponsiveness. Can you do that?
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

Hi David,
When i posted the appropriate bug problem, the ruby, rails, gems, and rails app used older code.
So i can not provide the exact app to produce the exact posted bug traces.
Below illustrates the various issues i came across.
============ commands to create rails/ruby app ==============
Here are the instructions to run from the terminal:

rails new blog -h
creates the blog example given by rails
cd blog
adjust gemfile to include
gem 'byebug'
3.5) if byebug not installed then
sudo gem install byebug
bundle install
===================================================

=================Tests showing various issues===========
=========test 1: shows that using cont against set linetrace outputs nothing
add following lines to config/application.rb at the top of the file
require 'byebug'
byebug
now run rails s
when byebug reponds
put in these commands
set linetrace
cont
this does not output any traced lines
cntl c to stop the rails server
==================================================
========test 2: see that byebug stops due to `no file or directory' error throw though the previous test shows that the code is okay
restart the server: rails s
the terminal output:
~/blog: rails s
[1, 10] in /Users/bone_david/blog/config/application.rb
1: require 'byebug'
2: byebug
=>  3: require File.expand_path('../boot', FILE)
4:
5: require 'rails/all'
6:
7: # Require the gems listed in Gemfile, including any gems
8: # you've limited to :test, :development, or :production.
9: Bundler.require(*Rails.groups)
10:
(byebug) set linetrace
linetrace is on
(byebug) step 20000
Tracing: /Users/bone_david/blog/config/application.rb:5 require 'rails/all'
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/gems/2.1.0/gems/railties-4.0.13/lib/rails/all.rb:1 require "rails"
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/gems/2.1.0/gems/railties-4.0.13/lib/rails.rb:1 require 'rails/ruby_version_check'
........ last trace lines showing problem
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/gems/2.1.0/gems/railties-4.0.13/lib/rails/deprecation.rb:3 module Rails
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/gems/2.1.0/gems/railties-4.0.13/lib/rails/deprecation.rb:4   class DeprecatedConstant < ActiveSupport::Deprecation::DeprecatedConstantProxy
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/gems/2.1.0/gems/railties-4.0.13/lib/rails/deprecation.rb:5     def self.deprecate(old, current)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/gems/2.1.0/gems/railties-4.0.13/lib/rails/deprecation.rb:11     private
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/gems/2.1.0/gems/railties-4.0.13/lib/rails/deprecation.rb:13     def target
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/gems/2.1.0/gems/railties-4.0.13/lib/rails/deprecation.rb:18   DeprecatedConstant.deprecate('RAILS_CACHE', '::Rails.cache')
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/gems/2.1.0/gems/railties-4.0.13/lib/rails/deprecation.rb:7       constant = constant = new(old, current)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/gems/2.1.0/gems/activesupport-4.0.13/lib/active_support/deprecation/proxy_wrappers.rb:7         object = args.first
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/gems/2.1.0/gems/activesupport-4.0.13/lib/active_support/deprecation/proxy_wrappers.rb:9         return object unless object
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/gems/2.1.0/gems/activesupport-4.0.13/lib/active_support/deprecation/proxy_wrappers.rb:10         super
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/singleton.rb:138         return @singleton__instance__ if @singleton__instance__
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/gems/2.1.0/gems/activesupport-4.0.13/lib/active_support/deprecation/proxy_wrappers.rb:107         @old_const = old_const
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/gems/2.1.0/gems/activesupport-4.0.13/lib/active_support/deprecation/proxy_wrappers.rb:108         @new_const = new_const
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/gems/2.1.0/gems/activesupport-4.0.13/lib/active_support/deprecation/proxy_wrappers.rb:109         @deprecator = deprecator
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/gems/2.1.0/gems/railties-4.0.13/lib/rails/deprecation.rb:8       eval "::#{old} = constant"
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/gems/2.1.0/gems/byebug-9.0.0/lib/byebug/core.rb:78   at_exit { Byebug.handle_post_mortem if Byebug.post_mortem? }
/usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/deprecation.rb:8:in eval': No such file or directory @ rb_sysopen - (eval) (Errno::ENOENT) 	from /usr/local/rvm/gems/ruby-2.1.1@global/gems/byebug-9.0.0/lib/byebug/helpers/file.rb:18:in open'
from /usr/local/rvm/gems/ruby-2.1.1@global/gems/byebug-9.0.0/lib/byebug/helpers/file.rb:18:in get_line' 	from /usr/local/rvm/gems/ruby-2.1.1@global/gems/byebug-9.0.0/lib/byebug/context.rb:71:in full_location'
from /usr/local/rvm/gems/ruby-2.1.1@global/gems/byebug-9.0.0/lib/byebug/processors/command_processor.rb:60:in at_tracing' 	from /usr/local/rvm/gems/ruby-2.1.1@global/gems/byebug-9.0.0/lib/byebug/context.rb:105:in at_tracing'
from (eval):1:in deprecate' 	from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/deprecation.rb:8:in eval'
from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/deprecation.rb:8:in deprecate' 	from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/deprecation.rb:18:in module:Rails'
from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/deprecation.rb:3:in <top (required)>' 	from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails.rb:11:in require'
from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails.rb:11:in <top (required)>' 	from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/all.rb:1:in require'
from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/all.rb:1:in <top (required)>' 	from /Users/bone_david/blog/config/application.rb:5:in require'
from /Users/bone_david/blog/config/application.rb:5:in <top (required)>' 	from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/commands.rb:74:in require'
from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/commands.rb:74:in block in <top (required)>' 	from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/commands.rb:71:in tap'
from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/commands.rb:71:in <top (required)>' 	from bin/rails:4:in require'
from bin/rails:4:in `'
~/blog:
=====================================================
===========test 3: Tracing:  just loops and never continues on to where the server outputs following messages
[2016-05-13 22:42:42] INFO  WEBrick 1.3.1
[2016-05-13 22:42:42] INFO  ruby 2.1.1 (2014-02-24) [x86_64-darwin12.0]
[2016-05-13 22:42:42] INFO  WEBrick::HTTPServer#start: pid=7194 port=3000
Comment out require / set linetrace commands in config/application.rb
and put them at the beginning of config/environments/development.rb
~/blog: rails s
=> Booting WEBrick
=> Rails 4.0.13 application starting in development on http://<IP_ADDRESS>:3000
=> Run rails server -h for more startup options
=> Ctrl-C to shutdown server
[1, 10] in /Users/bone_david/blog/config/environments/development.rb
1: require 'byebug'
2: byebug
3:
=>  4: Blog::Application.configure do
5:   # Settings specified here will take precedence over those in config/application.rb.
6:
7:   # In the development environment your application's code is reloaded on
8:   # every request. This slows down response time but is perfect for development
9:   # since you don't have to restart the web server when you make code changes.
10:   config.cache_classes = false
(byebug) set linetrace
linetrace is on
(byebug) step 200000
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/gems/2.1.0/gems/railties-4.0.13/lib/rails/railtie/configurable.rb:24           class_eval(&block)
Tracing: /Users/bone_david/blog/config/environments/development.rb:10   config.cache_classes = false
..... until loop
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:94     def info(msg)  log(INFO,  "INFO  " << format(msg)); end
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:119       if arg.is_a?(Exception)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:122       elsif arg.respond_to?(:to_str)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:123         arg.to_str
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:150       tmp = Time.now.strftime(@time_format)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:151       tmp << " " << data
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:152       super(level, tmp)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:75       if @log && level <= @level
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:76         data += "\n" if /\n\Z/ !~ data
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:76         data += "\n" if /\n\Z/ !~ data
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:77         @log << data
[2016-05-13 22:23:03] INFO  WEBrick::HTTPServer#start: pid=7099 port=3000
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:163         call_callback(:StartCallback)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:320       if cb = @config[callback_name]
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:165         thgroup = ThreadGroup.new
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:166         @status = :Running
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:167         begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:168           while @status == :Running
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
The above are the same issues as i remembered going thru back 6 months.
The same issues re `set linetrace / cont' combo didn't work, it was use of the step command that allowed me to trace the output as posted.
As provided above, u can see the different issues
Hope this helps
Dave

On May 13, 2016, at 11:01 AM, David Rodríguez<EMAIL_ADDRESS>wrote:
@DaveBone Create a simple dummy application and give me a set of steps I can run in my machine to see this unresponsiveness. Can you do that?
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

Hi Dave! I was now able to reproduce the issue of set linetrace + cont not working (although I think it's completely unrelated to the original issue you reported). Let me reopen and change the title.

By the way, this was probably introduced with https://github.com/deivid-rodriguez/byebug/pull/160. Any thoughts @k0kubun ?

great.
thk u
Sent from my iPad

On May 14, 2016, at 5:25 AM, David Rodríguez<EMAIL_ADDRESS>wrote:
Hi Dave! I was now able to reproduce the issue of set linetrace + cont not working (although I think it's completely unrelated to the original issue you reported). Let me reopen and change the title.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

=========test 1: shows that using cont against set linetrace outputs nothing
By the way, this was probably introduced with #160. Any thoughts @k0kubun ?

test 1 is reproductive with byebug 7.0 and 6.0 and I think that's my mistake. I'll try to fix it.

========test 2: see that byebug stops due to `no file or directory' error throw though the previous test
===========test 3: Tracing:  just loops and never continues on to where the server outputs following

test 2 and 3 seem the same issue and not related to test 1 and #160 since it's also reproductive on byebug 6.0. I'll try to fix it.

@DaveBone Both issues seem to be gone thanks to @k0kubun. Can you try last master and confirm?

Hi Deivid,
First excuse my salute to David instead of your proper name: age with greying hair does wonders to my eyes ;{
I now have byebug 9.0.1 installed.
Tried the tests but same thing. set linetrace/cont --- not output
As i have a basic understanding of git with limited experience playing with it,
instead of going thru the gem update/bundle install combo, is there something i should do to get the<EMAIL_ADDRESS>branch specifically?
or what i am doing okay?
d

On May 14, 2016, at 4:55 PM, David Rodríguez<EMAIL_ADDRESS>wrote:
@DaveBone Both issues seem to be gone thanks to @k0kubun. Can you try last master and confirm?
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

@DaveBone Well, my real name is David, so you're fine using it! :)
You normally would drop gem 'byebug', github: 'deivid-rodriguez/byebug' in your Gemfile, and then run bundle install to get latest master. Try that and let me know!

Hi David,
Phew...
As instructed that is  what i did with bundle install.
Unfortunately same result with cont not outputting.
here is the terminal output:
~/blog: bundle install
Using rake 11.1.2
Using i18n 0.7.0
Using minitest 4.7.5
Using multi_json 1.12.0
Using thread_safe 0.3.5
Using tzinfo 0.3.49
Using builder 3.1.4
Using erubis 2.7.0
Using rack 1.5.5
Using mime-types-data 3.2016.0221
Using activerecord-deprecated_finders 1.0.4
Using arel 4.0.2
Using byebug 9.0.1
Using coffee-script-source 1.10.0
Using execjs 2.6.0
Using thor 0.19.1
Using hike 1.2.3
Using json 1.8.3
Using bundler 1.12.3
Using tilt 1.4.1
Using sass 3.2.19
Using sqlite3 1.3.11
Using activesupport 4.0.13
Using rack-test 0.6.3
Using mime-types 3.0
Using coffee-script 2.4.1
Using uglifier 3.0.0
Using rdoc 4.2.2
Using sprockets 2.12.4
Using activemodel 4.0.13
Using jbuilder 1.5.3
Using actionpack 4.0.13
Using mail 2.6.4
Using sdoc 0.4.1
Using activerecord 4.0.13
Using railties 4.0.13
Using sprockets-rails 2.3.3
Using actionmailer 4.0.13
Using coffee-rails 4.0.1
Using jquery-rails 3.1.4
Using sass-rails 4.0.5
Using rails 4.0.13
Using turbolinks 2.5.3
Bundle complete! 10 Gemfile dependencies, 43 gems now installed.
Use bundle show [gemname] to see where a bundled gem is installed.
~/blog: byebug -v
Running byebug 9.0.1
================test 1 with config/applicatin.rb=========================
require 'byebug'
byebug
require File.expand_path('../boot', FILE)
require 'rails/all'
Require the gems listed in Gemfile, including any gems
you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
module Blog
class Application < Rails::Application
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
# -- all .rb files in that directory are automatically loaded.
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
# config.time_zone = 'Central Time (US & Canada)'

# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
# config.i18n.default_locale = :de

end
end
=========> test output
~/blog: rails s
[1, 10] in /Users/bone_david/blog/config/application.rb
1: require 'byebug'
2: byebug
=>  3: require File.expand_path('../boot', FILE)
4:
5: require 'rails/all'
6:
7: # Require the gems listed in Gemfile, including any gems
8: # you've limited to :test, :development, or :production.
9: Bundler.require(*Rails.groups)
10:
(byebug) set linetrace
linetrace is on
(byebug) cont
=> Booting WEBrick
=> Rails 4.0.13 application starting in development on http://<IP_ADDRESS>:3000
=> Run rails server -h for more startup options
=> Ctrl-C to shutdown server
[2016-05-15 07:54:46] INFO  WEBrick 1.3.1
[2016-05-15 07:54:46] INFO  ruby 2.1.1 (2014-02-24) [x86_64-darwin12.0]
[2016-05-15 07:54:46] INFO  WEBrick::HTTPServer#start: pid=1321 port=3000
^C[2016-05-15 07:54:51] INFO  going to shutdown ...
[2016-05-15 07:54:51] INFO  WEBrick::HTTPServer#start done.
Exiting
~/blog:
=============above with no output from set linetrace===========
==============test 2 against config/environments/development.rb ======
==== test 2: using cont : no output and runs to server waiting for browser input
~/blog: rails s
=> Booting WEBrick
=> Rails 4.0.13 application starting in development on http://<IP_ADDRESS>:3000
=> Run rails server -h for more startup options
=> Ctrl-C to shutdown server
[1, 10] in /Users/bone_david/blog/config/environments/development.rb
1: require 'byebug'
2: byebug
3:
=>  4: Blog::Application.configure do
5:   # Settings specified here will take precedence over those in config/application.rb.
6:
7:   # In the development environment your application's code is reloaded on
8:   # every request. This slows down response time but is perfect for development
9:   # since you don't have to restart the web server when you make code changes.
10:   config.cache_classes = false
(byebug) set linetrace
linetrace is on
(byebug) cont
[2016-05-15 08:04:19] INFO  WEBrick 1.3.1
[2016-05-15 08:04:19] INFO  ruby 2.1.1 (2014-02-24) [x86_64-darwin12.0]
[2016-05-15 08:04:19] INFO  WEBrick::HTTPServer#start: pid=1428 port=3000
^C[2016-05-15 08:11:12] INFO  going to shutdown ...
[2016-05-15 08:11:12] INFO  WEBrick::HTTPServer#start done.
Exiting
==== second test ====== using step=====>
~/blog: rails s
=> Booting WEBrick
=> Rails 4.0.13 application starting in development on http://<IP_ADDRESS>:3000
=> Run rails server -h for more startup options
=> Ctrl-C to shutdown server
[1, 10] in /Users/bone_david/blog/config/environments/development.rb
1: require 'byebug'
2: byebug
3:
=>  4: Blog::Application.configure do
5:   # Settings specified here will take precedence over those in config/application.rb.
6:
7:   # In the development environment your application's code is reloaded on
8:   # every request. This slows down response time but is perfect for development
9:   # since you don't have to restart the web server when you make code changes.
10:   config.cache_classes = false
(byebug) set linetrace
linetrace is on
(byebug) step 100000
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/gems/2.1.0/gems/railties-4.0.13/lib/rails/railtie/configurable.rb:24           class_eval(&block)
Tracing: /Users/bone_david/blog/config/environments/development.rb:10   config.cache_classes = false
........
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:94     def info(msg)  log(INFO,  "INFO  " << format(msg)); end
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:119       if arg.is_a?(Exception)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:122       elsif arg.respond_to?(:to_str)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:123         arg.to_str
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:150       tmp = Time.now.strftime(@time_format)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:151       tmp << " " << data
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:152       super(level, tmp)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:75       if @log && level <= @level
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:76         data += "\n" if /\n\Z/ !~ data
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:76         data += "\n" if /\n\Z/ !~ data
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:77         @log << data
[2016-05-15 08:12:48] INFO  WEBrick::HTTPServer#start: pid=1501 port=3000
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:163         call_callback(:StartCallback)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:320       if cb = @config[callback_name]
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:165         thgroup = ThreadGroup.new
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:166         @status = :Running
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:167         begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:168           while @status == :Running
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
^CTracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/server.rb:257         if server.respond_to?(:shutdown)
Tracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/server.rb:268       @_server ||= Rack::Handler.get(options[:server]) || Rack::Handler.default(options)
Tracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/server.rb:258           server.shutdown
Tracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/server.rb:268       @_server ||= Rack::Handler.get(options[:server]) || Rack::Handler.default(options)
Tracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/handler/webrick.rb:25         @server.shutdown
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:220       stop
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:210       if @status == :Running
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:211         @status = :Shutdown
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:221       @listeners.each{|s|
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:222         if @logger.debug?
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:107     def debug?; @level >= DEBUG; end
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:226         begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:227           s.shutdown
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:232           s.close
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:239       @listeners.clear
Tracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/handler/webrick.rb:26         @server = nil
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:196           @status = :Shutdown
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:197           @logger.info "going to shutdown ..."
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:94     def info(msg)  log(INFO,  "INFO  " << format(msg)); end
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:119       if arg.is_a?(Exception)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:122       elsif arg.respond_to?(:to_str)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:123         arg.to_str
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:150       tmp = Time.now.strftime(@time_format)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:151       tmp << " " << data
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:152       super(level, tmp)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:75       if @log && level <= @level
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:76         data += "\n" if /\n\Z/ !~ data
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:76         data += "\n" if /\n\Z/ !~ data
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:77         @log << data
[2016-05-15 08:12:56] INFO  going to shutdown ...
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:198           thgroup.list.each{|th| th.join if th[:WEBrickThread] }
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:199           call_callback(:StopCallback)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:320       if cb = @config[callback_name]
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:200           @logger.info "#{self.class}#start done."
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:94     def info(msg)  log(INFO,  "INFO  " << format(msg)); end
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:119       if arg.is_a?(Exception)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:122       elsif arg.respond_to?(:to_str)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:123         arg.to_str
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:150       tmp = Time.now.strftime(@time_format)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:151       tmp << " " << data
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:152       super(level, tmp)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:75       if @log && level <= @level
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:76         data += "\n" if /\n\Z/ !~ data
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:76         data += "\n" if /\n\Z/ !~ data
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:77         @log << data
[2016-05-15 08:12:56] INFO  WEBrick::HTTPServer#start done.
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:201           @status = :Stop
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/gems/2.1.0/gems/railties-4.0.13/lib/rails/commands/server.rb:88       puts 'Exiting' unless @options && options[:daemonize]
Tracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/server.rb:184       @options ||= parse_options(ARGV)
Exiting
Tracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/server.rb:333         at_exit { ::File.delete(options[:pid]) if ::File.exist?(options[:pid]) }
Tracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/server.rb:184       @options ||= parse_options(ARGV)
Tracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/server.rb:184       @options ||= parse_options(ARGV)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/gems/2.1.0/gems/byebug-9.0.1/lib/byebug/core.rb:78   at_exit { Byebug.handle_post_mortem if Byebug.post_mortem? }
~/blog:
================================
==============my environment ================
~/blog: rvm info
Warning! PATH is not properly set up, '/usr/local/rvm/gems/ruby-2.1.1/bin' is not at first place,
usually this is caused by shell initialization files - check them for 'PATH=...' entries,
it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles',
to fix temporarily in this shell session run: 'rvm use ruby-2.1.1'.
ruby-2.1.1:
system:
uname:       "Darwin davids-MacBook-Pro.local 15.4.0 Darwin Kernel Version 15.4.0: Fri Feb 26 22:08:05 PST 2016; root:xnu-3248.40.184~3/RELEASE_X86_64 x86_64"
system:      "osx/10.11/x86_64"
bash:        "/bin/bash => GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin15)"
zsh:         "/bin/zsh => zsh 5.0.8 (x86_64-apple-darwin15.0)"
rvm:
version:      "rvm 1.24.4 (stable) by Wayne E. Seguin<EMAIL_ADDRESS>Michal Papis<EMAIL_ADDRESS>[https://rvm.io/]"
updated:      "2 years 5 months 4 days 20 hours 51 minutes 33 seconds ago"
path:         "/usr/local/rvm"
ruby:
interpreter:  "ruby"
version:      "2.1.1p76"
date:         "2014-02-24"
platform:     "x86_64-darwin12.0"
patchlevel:   "2014-02-24 revision 45161"
full_version: "ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin12.0]"
homes:
gem:          "/usr/local/rvm/gems/ruby-2.1.1"
ruby:         "/usr/local/rvm/rubies/ruby-2.1.1"
binaries:
ruby:         "/Users/bone_david/.rbenv/shims/ruby"
irb:          "/Users/bone_david/.rbenv/shims/irb"
gem:          "/Users/bone_david/.rbenv/shims/gem"
rake:         "/Users/bone_david/.rbenv/shims/rake"
environment:
PATH:         "/opt/local/bin:/opt/local/sbin:/Users/bone_david/.rbenv/shims:/Users/bone_david/.rbenv/bin:/usr/local/bin:/usr/local/rvm/gems/ruby-2.1.1/bin:/usr/local/rvm/gems/ruby-2.1.1@global/bin:/usr/local/rvm/rubies/ruby-2.1.1/bin:/usr/local/rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/texbin:/usr/local/texlive/2014/bin/universal-darwin/:/usr/local/yacco2/bin/:/phantomjs/bin/"
GEM_HOME:     "/usr/local/rvm/gems/ruby-2.1.1"
GEM_PATH:     "/usr/local/rvm/gems/ruby-2.1.1:/usr/local/rvm/gems/ruby-2.1.1@global"
MY_RUBY_HOME: "/usr/local/rvm/rubies/ruby-2.1.1"
IRBRC:        "/usr/local/rvm/rubies/ruby-2.1.1/.irbrc"
RUBYOPT:      ""
gemset:       ""
~/blog:
===============my system variables from bash ===========
_system_arch=x86_64
_system_info='Darwin davids-MacBook-Pro.local 15.4.0 Darwin Kernel Version 15.4.0: Fri Feb 26 22:08:05 PST 2016; root:xnu-3248.40.184~3/RELEASE_X86_64 x86_64'
_system_name=OSX
_system_name_lowercase=osx
_system_type=Darwin
_system_version=10.11
disk_version='1.24.4 (stable)'
D

On May 14, 2016, at 8:15 PM, david bone<EMAIL_ADDRESS>wrote:
Hi Deivid,
First excuse my salute to David instead of your proper name: age with greying hair does wonders to my eyes ;{
I now have byebug 9.0.1 installed.
Tried the tests but same thing. set linetrace/cont --- not output
As i have a basic understanding of git with limited experience playing with it,
instead of going thru the gem update/bundle install combo, is there something i should do to get the<EMAIL_ADDRESS>branch specifically?
or what i am doing okay?
d

On May 14, 2016, at 4:55 PM, David Rodríguez<EMAIL_ADDRESS>wrote:
@DaveBone Both issues seem to be gone thanks to @k0kubun. Can you try last master and confirm?
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

@DaveBone You're using 9.0.1 again, make sure the line gem 'byebug', github: 'deivid-rodriguez/byebug' is in your Gemfile.

Hi David,
I apologize for the added frustration given by me to u.
I did as u asked.
here is the result:
~/blog: sudo bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on
this machine.
Using rake 11.1.2
Using i18n 0.7.0
Using minitest 4.7.5
Using multi_json 1.12.0
Using thread_safe 0.3.5
Using tzinfo 0.3.49
Using builder 3.1.4
Using erubis 2.7.0
Using rack 1.5.5
Using mime-types-data 3.2016.0221
Using activerecord-deprecated_finders 1.0.4
Using arel 4.0.2
Using byebug 9.0.1 from git://github.com/deivid-rodriguez/byebug.git (at master@3e33d2e)
Using coffee-script-source 1.10.0
Using execjs 2.6.0
Using thor 0.19.1
Using hike 1.2.3
Using json 1.8.3
Using bundler 1.12.3
Using tilt 1.4.1
Using sass 3.2.19
Using sqlite3 1.3.11
Using activesupport 4.0.13
Using rack-test 0.6.3
Using mime-types 3.0
Using coffee-script 2.4.1
Using uglifier 3.0.0
Using rdoc 4.2.2
Using sprockets 2.12.4
Using activemodel 4.0.13
Using jbuilder 1.5.3
Using actionpack 4.0.13
Using mail 2.6.4
Using sdoc 0.4.1
Using activerecord 4.0.13
Using railties 4.0.13
Using sprockets-rails 2.3.3
Using actionmailer 4.0.13
Using coffee-rails 4.0.1
Using jquery-rails 3.1.4
Using sass-rails 4.0.5
Using rails 4.0.13
Using turbolinks 2.5.3
Bundle complete! 10 Gemfile dependencies, 43 gems now installed.
Use bundle show [gemname] to see where a bundled gem is installed.
==========================
~/blog: rails s
=> Booting WEBrick
=> Rails 4.0.13 application starting in development on http://<IP_ADDRESS>:3000
=> Run rails server -h for more startup options
=> Ctrl-C to shutdown server
Exiting
/usr/local/rvm/gems/ruby-2.1.1@global/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in require': cannot load such file -- byebug/byebug (LoadError) 	from /usr/local/rvm/gems/ruby-2.1.1@global/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in block in require'
from /usr/local/rvm/gems/ruby-2.1.1@global/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in load_dependency' 	from /usr/local/rvm/gems/ruby-2.1.1@global/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in require'
from /Users/bone_david/.bundle/ruby/2.1.0/byebug-3e33d2e81dad/lib/byebug/core.rb:2:in <top (required)>' 	from /usr/local/rvm/gems/ruby-2.1.1@global/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in require'
from /usr/local/rvm/gems/ruby-2.1.1@global/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in block in require' 	from /usr/local/rvm/gems/ruby-2.1.1@global/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in load_dependency'
from /usr/local/rvm/gems/ruby-2.1.1@global/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in require' 	from /Users/bone_david/.bundle/ruby/2.1.0/byebug-3e33d2e81dad/lib/byebug/attacher.rb:10:in attach'
from /Users/bone_david/.bundle/ruby/2.1.0/byebug-3e33d2e81dad/lib/byebug/attacher.rb:30:in byebug' 	from /Users/bone_david/blog/config/environments/development.rb:2:in <top (required)>'
from /usr/local/rvm/gems/ruby-2.1.1@global/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in require' 	from /usr/local/rvm/gems/ruby-2.1.1@global/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in block in require'
from /usr/local/rvm/gems/ruby-2.1.1@global/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in load_dependency' 	from /usr/local/rvm/gems/ruby-2.1.1@global/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in require'
from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/engine.rb:591:in block (2 levels) in <class:Engine>' 	from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/engine.rb:590:in each'
from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/engine.rb:590:in block in <class:Engine>' 	from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/initializable.rb:30:in instance_exec'
from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/initializable.rb:30:in run' 	from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/initializable.rb:55:in block in run_initializers'
from /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:226:in block in tsort_each' 	from /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:348:in block (2 levels) in each_strongly_connected_component'
from /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:418:in block (2 levels) in each_strongly_connected_component_from' 	from /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:427:in each_strongly_connected_component_from'
from /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:417:in block in each_strongly_connected_component_from' 	from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/initializable.rb:44:in each'
from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/initializable.rb:44:in tsort_each_child' 	from /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:411:in call'
from /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:411:in each_strongly_connected_component_from' 	from /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:347:in block in each_strongly_connected_component'
from /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:345:in each' 	from /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:345:in call'
from /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:345:in each_strongly_connected_component' 	from /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:224:in tsort_each'
from /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:205:in tsort_each' 	from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/initializable.rb:54:in run_initializers'
from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/application.rb:215:in initialize!' 	from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/railtie/configurable.rb:30:in method_missing'
from /Users/bone_david/blog/config/environment.rb:5:in <top (required)>' 	from /Users/bone_david/blog/config.ru:3:in require'
from /Users/bone_david/blog/config.ru:3:in block in <main>' 	from /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/builder.rb:55:in instance_eval'
from /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/builder.rb:55:in initialize' 	from /Users/bone_david/blog/config.ru:in new'
from /Users/bone_david/blog/config.ru:in <main>' 	from /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/builder.rb:49:in eval'
from /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/builder.rb:49:in new_from_string' 	from /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/builder.rb:40:in parse_file'
from /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/server.rb:277:in build_app_and_options_from_config' 	from /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/server.rb:199:in app'
from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/commands/server.rb:48:in app' 	from /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/server.rb:314:in wrapped_app'
from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/commands/server.rb:75:in start' 	from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/commands.rb:76:in block in <top (required)>'
from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/commands.rb:71:in tap' 	from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/commands.rb:71:in <top (required)>'
from bin/rails:4:in require' 	from bin/rails:4:in '
~/blog:
d

On May 15, 2016, at 8:53 AM, David Rodríguez<EMAIL_ADDRESS>wrote:
@DaveBone You're using 9.0.1 again, make sure the line gem 'byebug', github: 'deivid-rodriguez/byebug' is in your Gemfile.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

Try running rails through bundler: bundle exec rails s. Also, why are you running bundler with sudo?

Why bundle install does not work:
~/blog: bundle install
Using rake 11.1.2
Using i18n 0.7.0
Using minitest 4.7.5
Using multi_json 1.12.0
Using thread_safe 0.3.5
Using tzinfo 0.3.49
Using builder 3.1.4
Using erubis 2.7.0
Using rack 1.5.5
Using mime-types-data 3.2016.0221
Using activerecord-deprecated_finders 1.0.4
Using arel 4.0.2
Using byebug 9.0.1 from git://github.com/deivid-rodriguez/byebug.git (at master@3e33d2e)
Gem::FilePermissionError: You don't have write permissions for the /usr/local/rvm/gems/ruby-2.1.1/bin directory.
Using coffee-script-source 1.10.0
Using execjs 2.6.0
Using thor 0.19.1
Using hike 1.2.3
Using json 1.8.3
Using bundler 1.12.3
Using tilt 1.4.1
Using sass 3.2.19
Using sqlite3 1.3.11
Using activesupport 4.0.13
Using rack-test 0.6.3
Using mime-types 3.0
An error occurred while installing byebug (9.0.1), and Bundler cannot continue.
Make sure that gem install byebug -v '9.0.1' succeeds before bundling.
~/blog:
With sudo:
~/blog: sudo bundle install
Password:
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on
this machine.
Using rake 11.1.2
Using i18n 0.7.0
Using minitest 4.7.5
Using multi_json 1.12.0
Using thread_safe 0.3.5
Using tzinfo 0.3.49
Using builder 3.1.4
Using erubis 2.7.0
Using rack 1.5.5
Using mime-types-data 3.2016.0221
Using activerecord-deprecated_finders 1.0.4
Using arel 4.0.2
Using byebug 9.0.1 from git://github.com/deivid-rodriguez/byebug.git (at master@3e33d2e)
Using coffee-script-source 1.10.0
Using execjs 2.6.0
Using thor 0.19.1
Using hike 1.2.3
Using json 1.8.3
Using bundler 1.12.3
Using tilt 1.4.1
Using sass 3.2.19
Using sqlite3 1.3.11
Using activesupport 4.0.13
Using rack-test 0.6.3
Using mime-types 3.0
Using coffee-script 2.4.1
Using uglifier 3.0.0
Using rdoc 4.2.2
Using sprockets 2.12.4
Using activemodel 4.0.13
Using jbuilder 1.5.3
Using actionpack 4.0.13
Using mail 2.6.4
Using sdoc 0.4.1
Using activerecord 4.0.13
Using railties 4.0.13
Using sprockets-rails 2.3.3
Using actionmailer 4.0.13
Using coffee-rails 4.0.1
Using jquery-rails 3.1.4
Using sass-rails 4.0.5
Using rails 4.0.13
Using turbolinks 2.5.3
Bundle complete! 10 Gemfile dependencies, 43 gems now installed.
Use bundle show [gemname] to see where a bundled gem is installed.
~/blog:
========================same result===================
~/blog: bundle exec rails s
=> Booting WEBrick
=> Rails 4.0.13 application starting in development on http://<IP_ADDRESS>:3000
=> Run rails server -h for more startup options
=> Ctrl-C to shutdown server
Exiting
/usr/local/rvm/gems/ruby-2.1.1@global/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in require': cannot load such file -- byebug/byebug (LoadError) 	from /usr/local/rvm/gems/ruby-2.1.1@global/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in block in require'
from /usr/local/rvm/gems/ruby-2.1.1@global/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in load_dependency' 	from /usr/local/rvm/gems/ruby-2.1.1@global/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in require'
from /Users/bone_david/.bundle/ruby/2.1.0/byebug-3e33d2e81dad/lib/byebug/core.rb:2:in <top (required)>' 	from /usr/local/rvm/gems/ruby-2.1.1@global/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in require'
from /usr/local/rvm/gems/ruby-2.1.1@global/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in block in require' 	from /usr/local/rvm/gems/ruby-2.1.1@global/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in load_dependency'
from /usr/local/rvm/gems/ruby-2.1.1@global/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in require' 	from /Users/bone_david/.bundle/ruby/2.1.0/byebug-3e33d2e81dad/lib/byebug/attacher.rb:10:in attach'
from /Users/bone_david/.bundle/ruby/2.1.0/byebug-3e33d2e81dad/lib/byebug/attacher.rb:30:in byebug' 	from /Users/bone_david/blog/config/environments/development.rb:2:in <top (required)>'
from /usr/local/rvm/gems/ruby-2.1.1@global/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in require' 	from /usr/local/rvm/gems/ruby-2.1.1@global/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in block in require'
from /usr/local/rvm/gems/ruby-2.1.1@global/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in load_dependency' 	from /usr/local/rvm/gems/ruby-2.1.1@global/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in require'
from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/engine.rb:591:in block (2 levels) in <class:Engine>' 	from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/engine.rb:590:in each'
from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/engine.rb:590:in block in <class:Engine>' 	from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/initializable.rb:30:in instance_exec'
from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/initializable.rb:30:in run' 	from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/initializable.rb:55:in block in run_initializers'
from /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:226:in block in tsort_each' 	from /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:348:in block (2 levels) in each_strongly_connected_component'
from /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:418:in block (2 levels) in each_strongly_connected_component_from' 	from /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:427:in each_strongly_connected_component_from'
from /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:417:in block in each_strongly_connected_component_from' 	from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/initializable.rb:44:in each'
from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/initializable.rb:44:in tsort_each_child' 	from /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:411:in call'
from /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:411:in each_strongly_connected_component_from' 	from /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:347:in block in each_strongly_connected_component'
from /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:345:in each' 	from /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:345:in call'
from /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:345:in each_strongly_connected_component' 	from /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:224:in tsort_each'
from /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:205:in tsort_each' 	from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/initializable.rb:54:in run_initializers'
from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/application.rb:215:in initialize!' 	from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/railtie/configurable.rb:30:in method_missing'
from /Users/bone_david/blog/config/environment.rb:5:in <top (required)>' 	from /Users/bone_david/blog/config.ru:3:in require'
from /Users/bone_david/blog/config.ru:3:in block in <main>' 	from /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/builder.rb:55:in instance_eval'
from /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/builder.rb:55:in initialize' 	from /Users/bone_david/blog/config.ru:in new'
from /Users/bone_david/blog/config.ru:in <main>' 	from /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/builder.rb:49:in eval'
from /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/builder.rb:49:in new_from_string' 	from /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/builder.rb:40:in parse_file'
from /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/server.rb:277:in build_app_and_options_from_config' 	from /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/server.rb:199:in app'
from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/commands/server.rb:48:in app' 	from /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/server.rb:314:in wrapped_app'
from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/commands/server.rb:75:in start' 	from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/commands.rb:76:in block in <top (required)>'
from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/commands.rb:71:in tap' 	from /usr/local/rvm/gems/ruby-2.1.1@global/gems/railties-4.0.13/lib/rails/commands.rb:71:in <top (required)>'
from bin/rails:4:in require' 	from bin/rails:4:in '
~/blog:
d

On May 15, 2016, at 9:26 AM, David Rodríguez<EMAIL_ADDRESS>wrote:
Try running rails through bundler: bundle exec rails s. Also, why are you running bundler with sudo?
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

Mmmm this looks like a problem with your environment or a bug in bundler or something. Somehow the C extension does not seem to be compiled when installing via sudo. Let me release 9.0.2 so you can try this more easily.

ok
i'm off to shower as i smell like a skunk ;{
Will check in in about an hour.
It could be the xcode environment installed:
Version 7.3.1 (7D1014) with command tools:  version 7.3 just updated may 7/2016
I've had  problems developing with xcode and had to reinstall  a previous version that worked!
Do u want me to re-install a previous xcode that u are using?
d

On May 15, 2016, at 9:43 AM, David Rodríguez<EMAIL_ADDRESS>wrote:
Mmmm this looks like a problem with your environment or a bug in bundler or something. Somehow the C extension does not seem to be compiled when installing via sudo. Let me release 9.0.2 so you can try this more easily.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

@DaveBone Please try 9.0.2

Same issue as shown below.
What xcode version are u using?
I don't mind backtracking and reinstalling xcode to compile/link byebug
d
~/blog: bundle install
Fetching git://github.com/deivid-rodriguez/byebug.git
Fetching gem metadata from https://rubygems.org/
Fetching version metadata from https://rubygems.org/
Fetching dependency metadata from https://rubygems.org/
Resolving dependencies...
Using rake 11.1.2
Using i18n 0.7.0
Using minitest 4.7.5
Using multi_json 1.12.0
Using thread_safe 0.3.5
Using tzinfo 0.3.49
Using builder 3.1.4
Using erubis 2.7.0
Using rack 1.5.5
Using mime-types-data 3.2016.0221
Using activerecord-deprecated_finders 1.0.4
Using arel 4.0.2
Using bundler 1.12.3
Using byebug 9.0.2 (was 9.0.1) from git://github.com/deivid-rodriguez/byebug.git (at master@4a2b884)
Gem::FilePermissionError: You don't have write permissions for the /usr/local/rvm/gems/ruby-2.1.1/bin directory.
Using coffee-script-source 1.10.0
Using execjs 2.6.0
Using thor 0.19.1
Using hike 1.2.3
Using json 1.8.3
Using tilt 1.4.1
Using sass 3.2.19
Using sqlite3 1.3.11
Using activesupport 4.0.13
Using rack-test 0.6.3
Using mime-types 3.0
An error occurred while installing byebug (9.0.2), and Bundler cannot continue.
====================================================
~/blog: sudo bundle install
Password:
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on
this machine.
Fetching git://github.com/deivid-rodriguez/byebug.git
Fetching gem metadata from https://rubygems.org/
Fetching version metadata from https://rubygems.org/
Fetching dependency metadata from https://rubygems.org/
Resolving dependencies...
Using rake 11.1.2
Using i18n 0.7.0
Using minitest 4.7.5
Using multi_json 1.12.0
Using thread_safe 0.3.5
Using tzinfo 0.3.49
Using builder 3.1.4
Using erubis 2.7.0
Using rack 1.5.5
Using mime-types-data 3.2016.0221
Using activerecord-deprecated_finders 1.0.4
Using arel 4.0.2
Using bundler 1.12.3
Using byebug 9.0.2 (was 9.0.1) from git://github.com/deivid-rodriguez/byebug.git (at master@4a2b884)
Using coffee-script-source 1.10.0
Using execjs 2.6.0
Using thor 0.19.1
Using hike 1.2.3
Using json 1.8.3
Using tilt 1.4.1
Using sass 3.2.19
Using sqlite3 1.3.11
Using activesupport 4.0.13
Using rack-test 0.6.3
Using mime-types 3.0
Using coffee-script 2.4.1
Using uglifier 3.0.0
Using rdoc 4.2.2
Using sprockets 2.12.4
Using activemodel 4.0.13
Using jbuilder 1.5.3
Using actionpack 4.0.13
Using mail 2.6.4
Using sdoc 0.4.1
Using activerecord 4.0.13
Using railties 4.0.13
Using sprockets-rails 2.3.3
Using actionmailer 4.0.13
Using coffee-rails 4.0.1
Using jquery-rails 3.1.4
Using sass-rails 4.0.5
Using rails 4.0.13
Using turbolinks 2.5.3
Bundle complete! 10 Gemfile dependencies, 43 gems now installed.
Use bundle show [gemname] to see where a bundled gem is installed.
=================================================
~/blog: byebug -v
/Users/bone_david/.bundle/ruby/2.1.0/byebug-4a2b88447a45/lib/byebug/core.rb:2:in require': cannot load such file -- byebug/byebug (LoadError) 	from /Users/bone_david/.bundle/ruby/2.1.0/byebug-4a2b88447a45/lib/byebug/core.rb:2:in <top (required)>'
from /Users/bone_david/.bundle/ruby/2.1.0/byebug-4a2b88447a45/lib/byebug/runner.rb:3:in require' 	from /Users/bone_david/.bundle/ruby/2.1.0/byebug-4a2b88447a45/lib/byebug/runner.rb:3:in <top (required)>'
from /Users/bone_david/.bundle/ruby/2.1.0/byebug-4a2b88447a45/bin/byebug:5:in require' 	from /Users/bone_david/.bundle/ruby/2.1.0/byebug-4a2b88447a45/bin/byebug:5:in <top (required)>'
from /usr/local/rvm/rubies/ruby-2.1.1/bin/byebug:23:in load' 	from /usr/local/rvm/rubies/ruby-2.1.1/bin/byebug:23:in '
from /usr/local/rvm/gems/ruby-2.1.1@global/bin/ruby_executable_hooks:15:in eval' 	from /usr/local/rvm/gems/ruby-2.1.1@global/bin/ruby_executable_hooks:15:in '
~/blog:

On May 15, 2016, at 10:30 AM, David Rodríguez<EMAIL_ADDRESS>wrote:
@DaveBone Please try 9.0.2
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

Now you need to remove the line gem 'byebug', githun: 'deivid-rodriguez/byebug' and replace it with just gem 'byebug'.
I don't use MacOSX nor rvm, so our setups are very different, by the way.

Bundle picks up old byebug with gemfile gem 'byebug'
d
~/blog: bundle install
Resolving dependencies...
Using rake 11.1.2
Using i18n 0.7.0
Using minitest 4.7.5
Using multi_json 1.12.0
Using thread_safe 0.3.5
Using tzinfo 0.3.49
Using builder 3.1.4
Using erubis 2.7.0
Using rack 1.5.5
Using mime-types-data 3.2016.0221
Using activerecord-deprecated_finders 1.0.4
Using arel 4.0.2
Using bundler 1.12.3
Using byebug 9.0.1 (was 9.0.2)
Using coffee-script-source 1.10.0
Using execjs 2.6.0
Using thor 0.19.1
Using hike 1.2.3
Using json 1.8.3
Using tilt 1.4.1
Using sass 3.2.19
Using sqlite3 1.3.11
Using activesupport 4.0.13
Using rack-test 0.6.3
Using mime-types 3.0
Using coffee-script 2.4.1
Using uglifier 3.0.0
Using rdoc 4.2.2
Using sprockets 2.12.4
Using activemodel 4.0.13
Using jbuilder 1.5.3
Using actionpack 4.0.13
Using mail 2.6.4
Using sdoc 0.4.1
Using activerecord 4.0.13
Using railties 4.0.13
Using sprockets-rails 2.3.3
Using actionmailer 4.0.13
Using coffee-rails 4.0.1
Using jquery-rails 3.1.4
Using sass-rails 4.0.5
Using rails 4.0.13
Using turbolinks 2.5.3
Bundle complete! 10 Gemfile dependencies, 43 gems now installed.
Use bundle show [gemname] to see where a bundled gem is installed.
~/blog: byebug -v
Running byebug 9.0.1
~/blog:

On May 15, 2016, at 10:54 AM, David Rodríguez<EMAIL_ADDRESS>wrote:
Now you need to remove the line gem 'byebug', githun: 'deivid-rodriguez/byebug' and replace it with just gem 'byebug'.
I don't use MacOSX nor rvm, so our setups are very different, by the way.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

Run bundle update byebug then.

Still had to use sudo to install byebug
In the first test config/application.rb
~/blog: byebug -v
Running byebug 9.0.2
The set linetrace/cont combo starts logging!  YES :}
But stops logging in the eval statement as show below
I had to cntl c as u see to stop it.
~/blog: rails s
[1, 10] in /Users/bone_david/blog/config/application.rb
1: require 'byebug'
2: byebug
=>  3: require File.expand_path('../boot', FILE)
4:
5: require 'rails/all'
6:
7: # Require the gems listed in Gemfile, including any gems
8: # you've limited to :test, :development, or :production.
9: Bundler.require(*Rails.groups)
10:
(byebug) set linetrace
linetrace is on
(byebug) cont
Tracing: /Users/bone_david/blog/config/application.rb:5 require 'rails/all'
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/gems/2.1.0/gems/railties-4.0.13/lib/rails/all.rb:1 require "rails"
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/gems/2.1.0/gems/railties-4.0.13/lib/rails.rb:1 require 'rails/ruby_version_check'
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/gems/2.1.0/gems/railties-4.0.13/lib/rails/ruby_version_check.rb:1 if RUBY_VERSION < '1.9.3'
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/gems/2.1.0/gems/railties-4.0.13/lib/rails.rb:3 require 'pathname'
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/gems/2.1.0/gems/railties-4.0.13/lib/rails.rb:5 require 'active_support'
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/gems/2.1.0/gems/railties-4.0.13/lib/rails.rb:6 require 'active_support/core_ext/kernel/reporting'
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/gems/2.1.0/gems/activesupport-4.0.13/lib/active_support/core_ext/kernel/reporting.rb:1 require 'rbconfig'
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/gems/2.1.0/gems/activesupport-4.0.13/lib/active_support/core_ext/kernel/reporting.rb:2 require 'tempfile'
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/gems/2.1.0/gems/activesupport-4.0.13/lib/active_support/core_ext/kernel/reporting.rb:4 module Kernel
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/gems/2.1.0/gems/activesupport-4.0.13/lib/active_support/core_ext/kernel/reporting.rb:13   def silence_warnings
......
Tracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/builder.rb:1 module Rack
Tracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/builder.rb:31   class Builder
Tracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/builder.rb:32     def self.parse_file(config, opts = Server::Options.new)
Tracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/builder.rb:48     def self.new_from_string(builder_script, file="(rackup)")
Tracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/builder.rb:53     def initialize(default_app = nil,&block)
Tracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/builder.rb:58     def self.app(default_app = nil, &block)
Tracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/builder.rb:81     def use(middleware, args, &block)
Tracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/builder.rb:103     def run(app)
Tracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/builder.rb:126     def map(path, &block)
Tracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/builder.rb:131     def to_app
Tracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/builder.rb:137     def call(env)
Tracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/builder.rb:141     private
Tracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/builder.rb:143     def generate_map(default_app, mapping)
Tracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/server.rb:184       @options ||= parse_options(ARGV)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/gems/2.1.0/gems/railties-4.0.13/lib/rails/commands/server.rb:54       Options.new
Tracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/builder.rb:33       options = {}
Tracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/builder.rb:34       if config =~ /.ru$/
Tracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/builder.rb:35         cfgfile = ::File.read(config)
Tracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/builder.rb:36         if cfgfile[/^#\(.)/] && opts
Tracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/builder.rb:39         cfgfile.sub!(/^END\n.*\Z/m, '')
Tracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/builder.rb:40         app = new_from_string cfgfile, config
Tracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/builder.rb:49       eval "Rack::Builder.new {\n" + builder_script + "\n}.to_app",
^CTracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/gems/2.1.0/gems/railties-4.0.13/lib/rails/commands/server.rb:88       puts 'Exiting' unless @options && options[:daemonize]
Tracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/server.rb:184       @options ||= parse_options(ARGV)
Exiting
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/gems/2.1.0/gems/byebug-9.0.2/lib/byebug/core.rb:78   at_exit { Byebug.handle_post_mortem if Byebug.post_mortem? }
~/blog:
=============test 2 config/development.rb==== Same waiting on loop. stopped after 1 minute of looping
~/blog: rails s
=> Booting WEBrick
=> Rails 4.0.13 application starting in development on http://<IP_ADDRESS>:3000
=> Run rails server -h for more startup options
=> Ctrl-C to shutdown server
[1, 10] in /Users/bone_david/blog/config/environments/development.rb
1: require 'byebug'
2: byebug
3:
=>  4: Blog::Application.configure do
5:   # Settings specified here will take precedence over those in config/application.rb.
6:
7:   # In the development environment your application's code is reloaded on
8:   # every request. This slows down response time but is perfect for development
9:   # since you don't have to restart the web server when you make code changes.
10:   config.cache_classes = false
(byebug) set linetrace
linetrace is on
(byebug) cont
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/gems/2.1.0/gems/railties-4.0.13/lib/rails/railtie/configurable.rb:24           class_eval(&block)
Tracing: /Users/bone_david/blog/config/environments/development.rb:10   config.cache_classes = false
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/gems/2.1.0/gems/railties-4.0.13/lib/rails/railtie/configurable.rb:8       module ClassMethods
.....
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:94     def info(msg)  log(INFO,  "INFO  " << format(msg)); end
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:119       if arg.is_a?(Exception)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:122       elsif arg.respond_to?(:to_str)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:123         arg.to_str
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:150       tmp = Time.now.strftime(@time_format)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:151       tmp << " " << data
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:152       super(level, tmp)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:75       if @log && level <= @level
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:76         data += "\n" if /\n\Z/ !~ data
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:76         data += "\n" if /\n\Z/ !~ data
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:77         @log << data
[2016-05-15 11:27:27] INFO  WEBrick::HTTPServer#start: pid=4095 port=3000
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:163         call_callback(:StartCallback)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:320       if cb = @config[callback_name]
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:165         thgroup = ThreadGroup.new
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:166         @status = :Running
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:167         begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:168           while @status == :Running
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
^CTracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/server.rb:257         if server.respond_to?(:shutdown)
Tracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/server.rb:268       @_server ||= Rack::Handler.get(options[:server]) || Rack::Handler.default(options)
Tracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/server.rb:258           server.shutdown
Tracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/server.rb:268       @_server ||= Rack::Handler.get(options[:server]) || Rack::Handler.default(options)
Tracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/handler/webrick.rb:25         @server.shutdown
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:220       stop
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:210       if @status == :Running
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:211         @status = :Shutdown
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:221       @listeners.each{|s|
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:222         if @logger.debug?
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:107     def debug?; @level >= DEBUG; end
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:226         begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:227           s.shutdown
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:232           s.close
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:239       @listeners.clear
Tracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/handler/webrick.rb:26         @server = nil
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:196           @status = :Shutdown
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:197           @logger.info "going to shutdown ..."
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:94     def info(msg)  log(INFO,  "INFO  " << format(msg)); end
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:119       if arg.is_a?(Exception)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:122       elsif arg.respond_to?(:to_str)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:123         arg.to_str
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:150       tmp = Time.now.strftime(@time_format)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:151       tmp << " " << data
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:152       super(level, tmp)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:75       if @log && level <= @level
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:76         data += "\n" if /\n\Z/ !~ data
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:76         data += "\n" if /\n\Z/ !~ data
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:77         @log << data
[2016-05-15 11:29:21] INFO  going to shutdown ...
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:198           thgroup.list.each{|th| th.join if th[:WEBrickThread] }
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:199           call_callback(:StopCallback)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:320       if cb = @config[callback_name]
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:200           @logger.info "#{self.class}#start done."
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:94     def info(msg)  log(INFO,  "INFO  " << format(msg)); end
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:119       if arg.is_a?(Exception)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:122       elsif arg.respond_to?(:to_str)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:123         arg.to_str
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:150       tmp = Time.now.strftime(@time_format)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:151       tmp << " " << data
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:152       super(level, tmp)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:75       if @log && level <= @level
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:76         data += "\n" if /\n\Z/ !~ data
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:76         data += "\n" if /\n\Z/ !~ data
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/log.rb:77         @log << data
[2016-05-15 11:29:21] INFO  WEBrick::HTTPServer#start done.
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:201           @status = :Stop
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/gems/2.1.0/gems/railties-4.0.13/lib/rails/commands/server.rb:88       puts 'Exiting' unless @options && options[:daemonize]
Tracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/server.rb:184       @options ||= parse_options(ARGV)
Exiting
Tracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/server.rb:333         at_exit { ::File.delete(options[:pid]) if ::File.exist?(options[:pid]) }
Tracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/server.rb:184       @options ||= parse_options(ARGV)
Tracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/server.rb:184       @options ||= parse_options(ARGV)
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/gems/2.1.0/gems/byebug-9.0.2/lib/byebug/core.rb:78   at_exit { Byebug.handle_post_mortem if Byebug.post_mortem? }
~/blog:
d

On May 15, 2016, at 10:59 AM, David Rodríguez<EMAIL_ADDRESS>wrote:
Run bundle update byebug then.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

Noted.
Sorry for bothering you again @k0kubun , do you know what might be going on here?

I overlooked one issue in https://github.com/deivid-rodriguez/byebug/issues/194#issuecomment-219197167. The problem in test2 and test3 aren't the same. Then https://github.com/deivid-rodriguez/byebug/issues/194#issuecomment-219292536  contains only test3's issue.

Tracing:  just loops and never continues on to where the server outputs following messages

I couldn't understand what's wrong in test3 and no issue found in https://github.com/deivid-rodriguez/byebug/issues/194#issuecomment-219292536 for me. Just rails server looped being traced and you stopped it with SIGINT.
I guess it's not a bug and the way to use byebug is wrong. But I don't know how linetrace works in multi-threaded environment like WEBrick. Only one thing I can say is that if you're not debugging Rails or WEBrick, it may be bad idea to start tracing from such a line.

I do not understand.
The premise of set linetrace / cont should trace lines until it (aka WEBrick) arrives at a point where it waits  for the browser  to start communicating with it.
ie This is where it should arrive to by its output:
[2016-05-15 20:46:50] INFO  WEBrick 1.3.1
[2016-05-15 20:46:50] INFO  ruby 2.1.1 (2014-02-24) [x86_64-darwin12.0]
[2016-05-15 20:46:50] INFO  WEBrick::HTTPServer#start: pid=1236 port=3000
This is not happening.

On May 15, 2016, at 7:42 PM, Takashi Kokubun<EMAIL_ADDRESS>wrote:
I overlooked one issue in #194 (comment). The problem in test2 and test3 aren't the same. Then #194 (comment) contains only test3's issue.
Tracing: just loops and never continues on to where the server outputs following messages
I couldn't understand what's wrong in test3 and no issue found in #194 (comment) for me. Just rails server looped being traced and you stopped it with SIGINT.

Somewhere in the byebug code, the single step control code is trapped in some type of loop or interupt loss and not continuing to the above messages..

I guess it's not a bug and the way to use byebug is wrong.
Both examples of problems, in my opinion, should not interfere with the execution flow.
Byebug is interfering with the program's execution flow.

For example u can do this type of "execution line code" tracing in other languages using dtrace and c++
These below examples of where byebug stops tracing and stops the program's execution are manifestations of byebug's interference or lost-wait-on-some-type-of-interupt with the program being traced.
a) eval statement where byebug just waits for some restart condition/interupt, and
b) looping
This is not a criticism but observations on how to improve the product.

But I don't know how linetrace works in multi-threaded environment like WEBrick.
Possible the issue is with the multi-threaded/ communication mechanism that stops/waits/receives interrupt message/restart
Only one thing I can say is that if you're not debugging Rails or WEBrick, it may be bad idea to start tracing from such a line.
This seems to be a conditional statement of what can be traced. That is it places the emphasis on the programmer to determine whether the appropriate code is allowed to be traced
due to the limitations of the debugger program!

My view is to learn by "execution code path sequences" what is happening.
No breakpoints, no emphasis on parsing code etc. Just what code paths are being executed. Then post process the output by eg awk, or grep
An excellent way to debug code for post assessment strategies to refine the problem state when a large program of mixed elements is misbehaving, ie many sources of code like gems are mixed and u want to figure out what is being called.
My 2 cents.
I suggest if this is as far as the problem resolution  goes in resolving these issues, please place a statement of limitations for others in using the product.
I do appreciate the efforts expressed so far.
Sincerely
Dave

—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

My view is to learn by "execution code path sequences" what is happening.
No breakpoints, no emphasis on parsing code etc. Just what code paths are being executed.
I suggest if this is as far as the problem resolution  goes in resolving these issues, please place a statement of limitations for others in using the product.

So your usecase may be that you want to do something like rbtrace with byebug. Since set linetrace exists, I guess the usecase itself is not wrong. I just thought multi-threaded environment was making things hard.

The premise of set linetrace / cont should trace lines until it (aka WEBrick) arrives at a point where it waits  for the browser  to start communicating with it.
ie This is where it should arrive to by its output:
[2016-05-15 20:46:50] INFO  WEBrick 1.3.1
[2016-05-15 20:46:50] INFO  ruby 2.1.1 (2014-02-24) [x86_64-darwin12.0]
[2016-05-15 20:46:50] INFO  WEBrick::HTTPServer#start: pid=1236 port=3000

You mean byebug should traces until program reaches "[2016-05-15 20:46:50] INFO  WEBrick 1.3.1" and nothing should be put after "[2016-05-15 20:46:50] INFO  WEBrick::HTTPServer#start: pid=1236 port=3000"?
In https://github.com/deivid-rodriguez/byebug/issues/194#issuecomment-219292536, "[2016-05-15 11:27:27] INFO  WEBrick::HTTPServer#start: pid=4095 port=3000" was shown and correctly traced until it. Then server loops as expected being traced since it actually does not "wait for the browser" but loop and check connection from client.

Let me summarize my findings from this note:

On May 15, 2016, at 10:14 PM, Takashi Kokubun<EMAIL_ADDRESS>wrote:
My view is to learn by "execution code path sequences" what is happening.
No breakpoints, no emphasis on parsing code etc. Just what code paths are being executed.
I suggest if this is as far as the problem resolution goes in resolving these issues, please place a statement of limitations for others in using the product.
So your usecase may be that you want to do something like rbtrace with byebug. Since set linetrace exists, I guess the usecase itself is not wrong. I just thought multi-threaded environment was making things hard.
The premise of set linetrace / cont should trace lines until it (aka WEBrick) arrives at a point where it waits for the browser to start communicating with it.
ie This is where it should arrive to by its output:
[2016-05-15 20:46:50] INFO WEBrick 1.3.1
[2016-05-15 20:46:50] INFO ruby 2.1.1 (2014-02-24) [x86_64-darwin12.0]
[2016-05-15 20:46:50] INFO WEBrick::HTTPServer#start: pid=1236 port=3000
You mean byebug should traces until program reaches "[2016-05-15 20:46:50] INFO WEBrick 1.3.1" and nothing should be put after "[2016-05-15 20:46:50] INFO WEBrick::HTTPServer#start: pid=1236 port=3000"?
In #194 (comment), "[2016-05-15 11:27:27] INFO WEBrick::HTTPServer#start: pid=4095 port=3000" was shown and correctly traced until it. Then server loops as expected being traced since it actually does not "wait for the browser" but loop and check connection from client.

No byebug should have outputted the above WEBrick messages and continued its tracing output which then continues looping the below repeated  io code loop waiting for browser input:
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:169             begin
Tracing: /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:170               if svrs = IO.select(@listeners, nil, nil, 2.0)
Seeing this looping output allows me then to  control c the execution.
Then study the execution paths outputted and develop more refined byebug debugging strategies on chosen  code modules.

—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

As i interpret the explanation, it seems the problems are manifestations of threading.
As ``set linetrace'' command is a global definition probably conceived use within a single process rather than multiple spawning contexts aka threads:
Let me investigate using byebug and the linetrace execution paths.
The manifestations to investigate:

config/environments/development.rb: io loop
should have outputted the Webrick messages to the terminal. It somehow blocked this happening or placed the thread's io into bitbucket
config/application.rb : stopped at the eval state
Tracing: /usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/builder.rb:49       eval "Rack::Builder.new {\n" + builder_script + "\n}.to_app",

What i hope to establish are the conditions manifesting these issues and possibly to come up with suggested work arounds or work-in-process warnings.
d

I admit that some issue may exist in the combination of rack, webrick, rails and byebug. But the scope is too large and personally I have no time to do such hard investigation. Could you investigate it further and provide minimal code to reproduce the two issues? I mean, ideally the issue report to byebug should not include WEBrick, Rack and config/* of Rails.

Yes i will play with the program and byebug debugging.
The 2 issues being investigated by me are as reported:

stopped  outputting of debugged program's own messages  to the terminal when linetrace on: config/environments/development.rb
So far i have found that turning on linetrace, output traced lines by byebug, then turn off linetrace returns  to outputing  the debugged program's own messages.
Yes! This is good. This tells me that the @log io context is saved and re-established.
i will try to isolate where the context flipping between byebug and the server happens:
investigate eval statement stalling: context: config/application.rb

On May 16, 2016, at 6:53 PM, Takashi Kokubun<EMAIL_ADDRESS>wrote:
I admit that some issue may exist in the combination of rack, webrick, rails and byebug. But the scope is too large and personally I have no time to do such hard investigation. Could you investigate it further and provide minimal code to reproduce the two issues? I mean, ideally the issue report to byebug should not include WEBrick, Rack and config/* of Rails.
I will try to extract these contexts and report me findings asap.

d

—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

Hi Guys,
I have not abandoned my commitment.
So far i have isolated the 2 problems but within the blog/rails context:

linetrace on stops at eval statement --- looks like output device capacity or context capacity blocking the linetrace's outputing source lines and continuing blog's execution.
By placing linetrace off before the eval statement, program behaves well and continues to its browser wait loop
linetrace outputs  blocks the blog's stderr device logging its own messages. When  linetrace turned off between 2 of blog's messages, it re-establishes blog's stderr device to output its messages

I am exploring dtrace to determine a reduced context as per Kakashi Kokubun's request.
Apple's detour: El Capitan's SID
I develop on a Mac and have its latest OS running.
El Captitan now uses digital signatures and blocks certain directories/programs like dtrace to run against /usr/local ... programs etc.
I am currently looking at a work around to see where dtrace exploration takes me.
Will keep u posted.
Dave

On May 16, 2016, at 6:53 PM, Takashi Kokubun<EMAIL_ADDRESS>wrote:
I admit that some issue may exist in the combination of rack, webrick, rails and byebug. But the scope is too large and personally I have no time to do such hard investigation. Could you investigate it further and provide minimal code to reproduce the two issues? I mean, ideally the issue report to byebug should not include WEBrick, Rack and config/* of Rails.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

Hi David + Takashi,
Sorry that it took so long looking at the problem re 2 years.
My journey:
1) Created a Freebsd bootable disk for my mac: by creating on a memory stick a bootable Freebsd distribution. Freebsd used cuz of dtrace
2) Use dtrace to watch rails server execute with byebug's traceline statement turned on. This produces a recursive loop waiting on stdout to output its  source lines
This guard also prevented dtrace output pipe lining with tee utility. When stopping the rail server, dtrace then flushed out its output.
3) I did other interspersed activities as i am retired
4) Sometimes the journey is at the tip of one's nose and not around the back of one's head to the other side: laughing at myself  :}
The good news is Byebug funcitons properly!
The issue is in builder.rb"s statement using TOPLEVEL_BINDING context
def self.new_from_string(builder_script, file="(rackup)")
eval "Rack::Builder.new {\n" + builder_script + "\n}.to_app",  TOPLEVEL_BINDING, file, 0
end
On my mac os:
/usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.5.5/lib/rack/builder.rb
In Freebsd
~/blog/.rvm/ of ruby version/src
The TOPLEVEL_BINDING context takes over stdout and guards against its use. Probably builder.rb software developer's decision to not allow the tracing of  this eval statement.
By commenting out in builder.rb
eval str#, TOPLEVEL_BINDING, file, 0
^
!
----- U can observe the Byebug traced lines of the eval statement
So if anyone like me wants to trace the server to post evaluate a la grep, gawk etc the source code modules called, maybe  astatement in Byebug's documentation will add this finding.
I did not post this to the forum as to possible developer's reason to disallow the tracing to public eyes?
Hope this helps, and thanks to your past responses
Dave

On Jun 2, 2016, at 12:51 PM, david bone<EMAIL_ADDRESS>wrote:
Hi Guys,
I have not abandoned my commitment.
So far i have isolated the 2 problems but within the blog/rails context:

linetrace on stops at eval statement --- looks like output device capacity or context capacity blocking the linetrace's outputing source lines and continuing blog's execution.
By placing linetrace off before the eval statement, program behaves well and continues to its browser wait loop
linetrace outputs  blocks the blog's stderr device logging its own messages. When  linetrace turned off between 2 of blog's messages, it re-establishes blog's stderr device to output its messages

I am exploring dtrace to determine a reduced context as per Kakashi Kokubun's request.
Apple's detour: El Capitan's SID
I develop on a Mac and have its latest OS running.
El Captitan now uses digital signatures and blocks certain directories/programs like dtrace to run against /usr/local ... programs etc.
I am currently looking at a work around to see where dtrace exploration takes me.
Will keep u posted.
Dave

On May 16, 2016, at 6:53 PM, Takashi Kokubun<EMAIL_ADDRESS>wrote:
I admit that some issue may exist in the combination of rack, webrick, rails and byebug. But the scope is too large and personally I have no time to do such hard investigation. Could you investigate it further and provide minimal code to reproduce the two issues? I mean, ideally the issue report to byebug should not include WEBrick, Rack and config/* of Rails.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub