Could this be a good solution...
I redirect the std::cout with this approach
streambuf *psbuf;
ofstream filestr;
filestr.open ("test.txt");
psbuf = filestr.rdbuf();
cout.rdbuf(psbuf);
cout << "This is written to the file";
filestr.close();
and open the file in a tab in the IDE during the execution....or??
Ohh very good,
so I have also a way to do it.
here is my sugegestion.
In my code everywhere where I wish to see an output I put this line:
std::cout << "Initialiaze Function init() " << std::endl;
or
std::cout << "Hello now my database is connented" << std::endl;
etc.
after all you build your Project. Then create a user-defined-tool. ;o)
Did you know what is coming ;o)).
Yes take your executable from your builded application and click launch tool hidden with standard output redirected.
after running you see your app and you can click around and every time it occures a std::cout in your code
you see it in your IDE C::B under Logs & other in the tab Code::blocks.
Any comment??????