{"action":"created","issue":{"url":"https://api.github.com/repos/deivid-rodriguez/byebug/issues/114","labels_url":"https://api.github.com/repos/deivid-rodriguez/byebug/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/deivid-rodriguez/byebug/issues/114/comments","events_url":"https://api.github.com/repos/deivid-rodriguez/byebug/issues/114/events","html_url":"https://github.com/deivid-rodriguez/byebug/issues/114","id":56222567,"number":114,"title":"Easier way to set a breakpoint in the same file.","user":{"login":"x-yuri","id":730588,"avatar_url":"https://avatars.githubusercontent.com/u/730588?v=3","gravatar_id":"","url":"https://api.github.com/users/x-yuri","html_url":"https://github.com/x-yuri","followers_url":"https://api.github.com/users/x-yuri/followers","following_url":"https://api.github.com/users/x-yuri/following{/other_user}","gists_url":"https://api.github.com/users/x-yuri/gists{/gist_id}","starred_url":"https://api.github.com/users/x-yuri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/x-yuri/subscriptions","organizations_url":"https://api.github.com/users/x-yuri/orgs","repos_url":"https://api.github.com/users/x-yuri/repos","events_url":"https://api.github.com/users/x-yuri/events{/privacy}","received_events_url":"https://api.github.com/users/x-yuri/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-02T11:02:34Z","updated_at":"2015-02-02T19:07:43Z","closed_at":null,"body":"That would be nice to have, like (notice the setting a breakpoint part):\r\n\r\n`Gemfile`:\r\n\r\n```ruby\r\nsource 'https://rubygems.org'\r\ngem 'byebug', github: 'deivid-rodriguez/byebug', branch: 'master'\r\n```\r\n\r\n`1.rb`:\r\n\r\n```ruby\r\nrequire 'rubygems'\r\nrequire 'bundler/setup'\r\nrequire 'byebug'\r\nbyebug\r\n[1, 2, 3].each do |i|\r\n  puts i\r\nend\r\n```\r\n\r\n```sh\r\n$ ruby 1.rb\r\n\r\n[1, 7] in 1.rb\r\n   1: require 'rubygems'\r\n   2: require 'bundler/setup'\r\n   3: require 'byebug'\r\n   4: byebug\r\n=> 5: [1, 2, 3].each do |i|\r\n   6:   puts i\r\n   7: end\r\n(byebug) b :6\r\nSuccessfully created breakpoint with id 1\r\n(byebug) c\r\nStopped by breakpoint 1 at /home/yuri/_/2/1.rb:6\r\n\r\n[1, 7] in 1.rb\r\n   1: require 'rubygems'\r\n   2: require 'bundler/setup'\r\n   3: require 'byebug'\r\n   4: byebug\r\n   5: [1, 2, 3].each do |i|\r\n=> 6:   puts i\r\n   7: end\r\n```\r\n\r\nThat would simplify matters when the path is not just `1.rb`, but `/home/yuri/.gem/ruby/2.1.5/gems/actionpack-4.2.0/lib/action_controller/metal/instrumentation.rb` or something."},"comment":{"url":"https://api.github.com/repos/deivid-rodriguez/byebug/issues/comments/72517007","html_url":"https://github.com/deivid-rodriguez/byebug/issues/114#issuecomment-72517007","issue_url":"https://api.github.com/repos/deivid-rodriguez/byebug/issues/114","id":72517007,"user":{"login":"x-yuri","id":730588,"avatar_url":"https://avatars.githubusercontent.com/u/730588?v=3","gravatar_id":"","url":"https://api.github.com/users/x-yuri","html_url":"https://github.com/x-yuri","followers_url":"https://api.github.com/users/x-yuri/followers","following_url":"https://api.github.com/users/x-yuri/following{/other_user}","gists_url":"https://api.github.com/users/x-yuri/gists{/gist_id}","starred_url":"https://api.github.com/users/x-yuri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/x-yuri/subscriptions","organizations_url":"https://api.github.com/users/x-yuri/orgs","repos_url":"https://api.github.com/users/x-yuri/repos","events_url":"https://api.github.com/users/x-yuri/events{/privacy}","received_events_url":"https://api.github.com/users/x-yuri/received_events","type":"User","site_admin":false},"created_at":"2015-02-02T19:07:43Z","updated_at":"2015-02-02T19:07:43Z","body":"Indeed, you're right. You may improve the help though:\r\n\r\n```\r\n(byebug) help break\r\n  b[reak] file:line [if expr]\r\n  b[reak] class(.|#)method [if expr]\r\n\r\n  Set breakpoint to some position, (optionally) if expr == true\r\n```\r\n\r\n`file:line` -> `[file:]line`"}}