User forums > Using Code::Blocks

stepping out of loop in debug mode

(1/1)

mahaju:
Hi
I have a long loop inside a function call
If I want to just complete  the loop in one step but continue single stepping the other instructions inside the function call, how do I do it in CodeBlocks?
Also, how to do the same thing for an inner loop in a nested loop?



--- Code: ---Eg:

void fnc ( ...){

   for (....)
     {
            // how to complete this loop immediately but single step through the other instructions in fnc()
     }
 
   for (.....)
    {   
           .
           .
           .
           for( ..... )
            {
                // how to complete this loop immediately but single step through the other instructions in the outer loop
               }
           .
           .
           .
     }


--- End code ---

Please help
Thank you

CodeBlocks: 10.05

ollydbg:

--- Code: ---void fnc ( ...){

   for (....)
     {
            // how to complete this loop immediately but single step through the other instructions in fnc()
     }
 
   for (.....)

--- End code ---
When debugging, click on the line of second "for", and context menu-> Run to cursor.

Navigation

[0] Message Index

Go to full version