Automatically step through with Byebug based on rule
<p>I'm using Byebug to debug my rails application. Currently I'm using <code>step</code> to trace the program as it executes. I'm <strong>not</strong> interested in tracing execution through every single line of third-party libraries, I only want to step through <strong>my</strong> code application.</p>

<p>An example(using rails, but it wouldn't have to be rails):</p>

<p>I put a <code>byebug</code> into one of my controllers and then step through have the following files:</p>

<ol>
<li><code>/.../app/controllers/home_controller.rb</code></li>
<li><code>/.../.rvm/gems/ruby-2.1.5@rails_4_2_2/gems/devise-3.5.5/lib/devise/controllers/helpers.rb</code></li>
<li><code>/.../.rvm/gems/ruby-2.1.5@rails_4_2_2/gems/devise-3.5.5/lib/devise/controllers/helpers.rb</code></li>
<li><code>/.../.rvm/gems/ruby-2.1.5@rails_4_2_2/gems/warden-1.2.4/lib/warden/session_serializer.rb</code></li>
<li><code>/.../.rvm/gems/ruby-2.1.5@rails_4_2_2/gems/actionpack-4.2.2/lib/action_dispatch/request/session.rb</code></li>
<li><code>Many other files here...</code></li>
<li><code>/.../app/...some_other_file_in_my_app</code></li>
</ol>

<p>I would like to be able to skip steps <code>2-6</code> and go straight to the next line of <strong>my</strong> code. Basically just skip past all third-party libraries when I'm <code>step</code>ing through my code. Is there a way to automatically skip files meet certain specifications (such as having a <code>.rvm</code> in the file path)?</p>

<p>I found this question: <a href="https://stackoverflow.com/questions/25249037/byebug-next-into-application-code-only?rq=1">byebug, next into application code only</a></p>

<p>But it assumes that you know the line number you're headed to. I'm using byebug to trace where the code is going(exploring a cloned project).</p>