Debugger stoped when 'cout' oceans of messages in debugging mode [message #147363] |
Fri, 24 June 2005 02:23  |
Eclipse User |
|
|
|
Originally posted by: james.guo.francetelecom.com.cn
Hi, all,
This problem appears when I debug the program in eclipse. For example:
#include <vector.h>
int main(int argc, char *argv[])
{
for (int i=0;i<=50000000;i++)
{
cout << "the program is running. count is : " << i << "." << endl;
}
cout << "the program will terminate." << endl;
return 0;
}
When I debug the code in eclipse, using gdb as a debugger, the code can't
run to end successfully. It will stop at "the program is running. count is
: 708617." or it will stop at some other place where the output is "the
program is running. count is : XXXXXX". But if you debug the code in gdb
directly, the program can complete successfully.
What's wrong with my eclipse? How to solve the problems?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03380 seconds