title: Can't step into for loop
body: <p>I've been having a strange problem that I've never seen before. Now I have a for loop:</p>
  
  <pre><code>var
   a,counter: byte;
  begin
    a:=0; 
     for counter := 1 to 10 do//I put a breakpoint at this line
     begin
       a:=a*5;
       a:=a+counter;
     end;
  end;
  </code></pre>
  
  <p>If I put a breakpoint at the line above and try to step into the loop I can't do it. The debugger immediately steps over the loop and goes to the end.In the end I get the right result, but I can't follow the loop step by step. I mean this is just a simple example and not the real task. I just want to know when in what circumstances does this happen? I definitely remember tracking through all the steps of a loop. I work with Delphi 2010.</p>