Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8030391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T00:45:12+00:00 2026-06-05T00:45:12+00:00

At the moment I’m using an eclipse-like IDE and the corresponding debug perspective, that

  • 0

At the moment I’m using an eclipse-like IDE and the corresponding debug perspective, that most of you are probably familiar with. While debugging code I quite often find myself stepping through many lines of code and observing variables and double checking if everything is as it is supposed to be.

But suppose there is something like this:

1. important line, e.g. generating a new object;
2. another important line, e.g. some tricky class method;
3. for (int i = 0; i < some_limit; ++i)
4.     some_array[i]++;
5. more important stuff;

Obviously I’m interested in what happens in lines 1,2 and 5 (I know this is a poor example, but please bear with me for a little while longer) but I don’t want to step through all hundreds (or even thousands) of iterations of lines 3/4.

So, finally, my question: Is there some way to step directly over the for-cycle? What I do right now is set a new breakpoint at line 5 and let the program run as soon as I hit line 3 and I believe this is not an optimal solution.

edit: The eclipse implementation of what ks1322 proposed is called “Run to line” and is mapped to ctrl-r

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T00:45:14+00:00Added an answer on June 5, 2026 at 12:45 am

    Use until command instead of next.

    From gdb documentation:

    Continue running until a source line past the current line, in the
    current stack frame, is reached. This command is used to avoid single
    stepping through a loop more than once.

    If you will use until instead of next, gdb will step over loops only once, which almost exactly what you want.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

at the moment we're using SVN (yeah, I know that's shame :)) and we're
at the moment i am using a while (true) loop to do this. I
At moment I want to implement picture upload without using any plug-ins. My upload
At the moment I'm using JavaFX only for fun and learning it. What I
I noticed a moment ago that my .gitconfig -file was public at my repo.
Imagine for a moment that I have a system that allows users to take
At the moment I have about 2000 trades which are priced using excel. I
At the moment my application.js file looks like this: //= require_tree ./vendor //= require_directory
At the moment I am trying to validate a form using PHP. The problem
At the moment I am using this to call the TabHost activity to change

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.