{"action":"created","issue":{"url":"https://api.github.com/repos/deivid-rodriguez/byebug/issues/188","labels_url":"https://api.github.com/repos/deivid-rodriguez/byebug/issues/188/labels{/name}","comments_url":"https://api.github.com/repos/deivid-rodriguez/byebug/issues/188/comments","events_url":"https://api.github.com/repos/deivid-rodriguez/byebug/issues/188/events","html_url":"https://github.com/deivid-rodriguez/byebug/issues/188","id":116362551,"number":188,"title":"Issue with caller output in byebug >= 7.0.0","user":{"login":"Aqualon","id":4507945,"avatar_url":"https://avatars.githubusercontent.com/u/4507945?v=3","gravatar_id":"","url":"https://api.github.com/users/Aqualon","html_url":"https://github.com/Aqualon","followers_url":"https://api.github.com/users/Aqualon/followers","following_url":"https://api.github.com/users/Aqualon/following{/other_user}","gists_url":"https://api.github.com/users/Aqualon/gists{/gist_id}","starred_url":"https://api.github.com/users/Aqualon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aqualon/subscriptions","organizations_url":"https://api.github.com/users/Aqualon/orgs","repos_url":"https://api.github.com/users/Aqualon/repos","events_url":"https://api.github.com/users/Aqualon/events{/privacy}","received_events_url":"https://api.github.com/users/Aqualon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-11T15:51:42Z","updated_at":"2015-11-12T09:40:04Z","closed_at":null,"body":"Hi, I found an issue with the output of caller in byebug >= 7.0.0.\r\n\r\nI added byebug in a model and then executed a spec testing this model. On the breakpoint I called `caller` and got the complete stack with byebug 6.0.2 (I removed my home path from the output).\r\n\r\nTo me that's helpful to follow the codepath that led to a certain place.\r\n\r\n```\r\n(byebug) puts caller\r\n.rvm/gems/ruby-2.2.3/gems/byebug-6.0.2/lib/byebug/helpers/eval.rb:52:in `eval'\r\n.rvm/gems/ruby-2.2.3/gems/byebug-6.0.2/lib/byebug/helpers/eval.rb:52:in `safe_eval'\r\n.rvm/gems/ruby-2.2.3/gems/byebug-6.0.2/lib/byebug/helpers/eval.rb:46:in `warning_eval'\r\n.rvm/gems/ruby-2.2.3/gems/byebug-6.0.2/lib/byebug/helpers/eval.rb:22:in `single_thread_eval'\r\n.rvm/gems/ruby-2.2.3/gems/byebug-6.0.2/lib/byebug/helpers/eval.rb:13:in `block in thread_safe_eval'\r\n.rvm/gems/ruby-2.2.3/gems/byebug-6.0.2/lib/byebug/helpers/eval.rb:84:in `allowing_other_threads'\r\n.rvm/gems/ruby-2.2.3/gems/byebug-6.0.2/lib/byebug/helpers/eval.rb:13:in `thread_safe_eval'\r\n.rvm/gems/ruby-2.2.3/gems/byebug-6.0.2/lib/byebug/processors/command_processor.rb:158:in `run_cmd'\r\n.rvm/gems/ruby-2.2.3/gems/byebug-6.0.2/lib/byebug/processors/command_processor.rb:144:in `repl'\r\n.rvm/gems/ruby-2.2.3/gems/byebug-6.0.2/lib/byebug/processors/command_processor.rb:95:in `process_commands'\r\n.rvm/gems/ruby-2.2.3/gems/byebug-6.0.2/lib/byebug/processors/command_processor.rb:75:in `at_line'\r\n.rvm/gems/ruby-2.2.3/gems/byebug-6.0.2/lib/byebug/context.rb:109:in `at_line'\r\nmy_project/app/models/like.rb:14:in `likers_for_story'\r\nmy_project/spec/models/like_spec.rb:87:in `block (5 levels) in <top (required)>'\r\n.rvm/gems/ruby-2.2.3/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/raise_error.rb:49:in `call'\r\n.rvm/gems/ruby-2.2.3/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/raise_error.rb:49:in `matches?'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-expectations-3.3.1/lib/rspec/expectations/handler.rb:50:in `block in handle_matcher'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-expectations-3.3.1/lib/rspec/expectations/handler.rb:27:in `with_matcher'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-expectations-3.3.1/lib/rspec/expectations/handler.rb:48:in `handle_matcher'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-expectations-3.3.1/lib/rspec/expectations/expectation_target.rb:54:in `to'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-expectations-3.3.1/lib/rspec/expectations/expectation_target.rb:87:in `to'\r\nmy_project/spec/models/like_spec.rb:86:in `block (4 levels) in <top (required)>'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example.rb:206:in `instance_exec'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example.rb:206:in `block in run'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example.rb:430:in `block in with_around_and_singleton_context_hooks'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example.rb:388:in `block in with_around_example_hooks'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:478:in `block in run'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:618:in `block in run_around_example_hooks_for'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example.rb:273:in `call'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example.rb:273:in `call'\r\n.rvm/gems/ruby-2.2.3/gems/rspec-rails-3.3.3/lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example.rb:378:in `instance_exec'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example.rb:378:in `instance_exec'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:389:in `execute_with'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:620:in `block (2 levels) in run_around_example_hooks_for'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example.rb:273:in `call'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example.rb:273:in `call'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:621:in `run_around_example_hooks_for'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:478:in `run'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example.rb:388:in `with_around_example_hooks'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example.rb:430:in `with_around_and_singleton_context_hooks'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example.rb:203:in `run'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:559:in `block in run_examples'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:555:in `map'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:555:in `run_examples'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:521:in `run'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `block (3 levels) in run_specs'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `map'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `block (2 levels) in run_specs'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/configuration.rb:1627:in `with_suite_hooks'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:114:in `block in run_specs'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/reporter.rb:77:in `report'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:113:in `run_specs'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:89:in `run'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:73:in `run'\r\n.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:41:in `invoke'\r\n.rvm/gems/ruby-2.2.3/gems/rspec-core-3.3.2/exe/rspec:4:in `<top (required)>'\r\n.rvm/gems/ruby-2.2.3/bin/rspec:23:in `load'\r\n.rvm/gems/ruby-2.2.3/bin/rspec:23:in `<main>'\r\n.rvm/gems/ruby-2.2.3/bin/ruby_executable_hooks:15:in `eval'\r\n.rvm/gems/ruby-2.2.3/bin/ruby_executable_hooks:15:in `<main>'\r\n```\r\n\r\nIn byebug >= 7.0.0 I only get output of byebug's own `eval.rb` which for me is not really useful.\r\n\r\n```\r\n(byebug) puts caller\r\n.rvm/gems/ruby-2.2.3/gems/byebug-8.1.0/lib/byebug/helpers/eval.rb:52:in `eval'\r\n.rvm/gems/ruby-2.2.3/gems/byebug-8.1.0/lib/byebug/helpers/eval.rb:52:in `safe_eval'\r\n.rvm/gems/ruby-2.2.3/gems/byebug-8.1.0/lib/byebug/helpers/eval.rb:46:in `warning_eval'\r\n.rvm/gems/ruby-2.2.3/gems/byebug-8.1.0/lib/byebug/helpers/eval.rb:22:in `single_thread_eval'\r\n.rvm/gems/ruby-2.2.3/gems/byebug-8.1.0/lib/byebug/helpers/eval.rb:13:in `block in thread_safe_eval'\r\n.rvm/gems/ruby-2.2.3/gems/byebug-8.1.0/lib/byebug/helpers/eval.rb:86:in `block in allowing_other_threads'\r\nnil\r\n```\r\n\r\nIs this a bug or do I have to do something differently in byebug 7.0.0 and above to get the complete callstack? Also tried latest 8.1.0 and this version shows the same."},"comment":{"url":"https://api.github.com/repos/deivid-rodriguez/byebug/issues/comments/156049348","html_url":"https://github.com/deivid-rodriguez/byebug/issues/188#issuecomment-156049348","issue_url":"https://api.github.com/repos/deivid-rodriguez/byebug/issues/188","id":156049348,"user":{"login":"Aqualon","id":4507945,"avatar_url":"https://avatars.githubusercontent.com/u/4507945?v=3","gravatar_id":"","url":"https://api.github.com/users/Aqualon","html_url":"https://github.com/Aqualon","followers_url":"https://api.github.com/users/Aqualon/followers","following_url":"https://api.github.com/users/Aqualon/following{/other_user}","gists_url":"https://api.github.com/users/Aqualon/gists{/gist_id}","starred_url":"https://api.github.com/users/Aqualon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aqualon/subscriptions","organizations_url":"https://api.github.com/users/Aqualon/orgs","repos_url":"https://api.github.com/users/Aqualon/repos","events_url":"https://api.github.com/users/Aqualon/events{/privacy}","received_events_url":"https://api.github.com/users/Aqualon/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T09:40:04Z","updated_at":"2015-11-12T09:40:04Z","body":"@deivid-rodriguez I checked it and the `caller` output looks again like it used to. Thanks for the fast fix!"}}