Why debug so slowly?



#include <stdio.h>
#include <time.h>

int main() {
  char buffer[1024];
  time_t start = time(NULL);
  fgets(buffer, sizeof buffer, stdin); // breakpoint
  printf("%.0f\n", difftime(time(NULL), start));
  return 0;

I set breakpoint on line with comment
type "test" in console
and press continue

and look at output:


Process finished with exit code 0

41 seconds?

If set buffer size to small value, example 8
it's take less time.

7 seconds...

1 comment
Comment actions Permalink

Thanks for reporting this, it's problem on our side. Here is the issue https://youtrack.jetbrains.com/issue/CPP-2269


Please sign in to leave a comment.