title: Can't continue stepping in debug mode when reaching "printf" in eclipse
body: <p>I am trying to debug c in eclipse with the next code:</p>
  
  <pre><code>void print_clause(SAT_clause * c) {
      int l_index;
      printf("(");
      for (l_index = 0; l_index &lt; c-&gt;literal_count; l_index++) {
          print_literal(c-&gt;literal_arr[l_index]);
          if(l_index != c-&gt;literal_count - 1){
              printf(" v ");
          }
      }
      printf(")");
  }
  </code></pre>
  
  <p>but each time I get to the <code>"printf("(");"</code> (the first print in this function) I get the next message in the console :<br>
  <code>(*stopped,reason="end-stepping-range"...</code> and than I can't step anymore. I assume this is <code>dbg</code> message that eclipse doesn't parse very well. I read somewhere that I need to add <code>\n</code> in the end of the <code>printf</code> function - that did work but I need the <code>printf</code> without the <code>\n</code> in the end. If I run in release mode - the printing is OK.<br>
  What am I doing wrong and how can I continue stepping after the <code>printf</code> ?</p>
  
  <p><strong>UPDATE</strong> Ok - I found out what is causing this behavior (but I still have a problem) - it is because of this link : <a href="https://stackoverflow.com/questions/13035075/printf-not-printing-on-console">printf not printing on console</a> . I added the setbuf(stdout, NULL); for enable printing in debug but than I can't step. Still if I remove this setbuf(stdout, NULL); I can't see the printf in debug mode because of the buffer (but I can continue stepping). <strong>any suggestions</strong> ?</p>