Why debug so slowly?
Example:
#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:
test
41
Process finished with exit code 0
41 seconds?
If set buffer size to small value, example 8
it's take less time.
7 seconds...
请先登录再写评论。
Thanks for reporting this, it's problem on our side. Here is the issue https://youtrack.jetbrains.com/issue/CPP-2269