This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 256985

Summary: C++ std::flush does not output to the debug window while debugger running 8.1 and 8.1(Beta)
Product: cnd Reporter: speeltronics
Component: DebuggerAssignee: Maria Tishkova <mromashova>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description speeltronics 2015-12-04 15:07:29 UTC
Calling a std::flush does not output to the debugger window while running in debug mode until it is paused or a std::endl is used.

I noticed you switched debug output in 8.1 and 8.1(Beta) to the Debugger Console instead of the Output window as in previous versions. It works fine in version 8.0.2.

Main() {

std::cout << "running";

//should output to debug window after flush is called, 
//but it just keeps filling the cout buffer and does not 
//output to the console until the debugger is paused.
std::cout << std::flush; 

//output should be
runningrunningrunningrunning...

std::cout << "running";
//This works fine
std::cout << std::endl;

//Outputs as expected
running
running
running
...
Comment 1 Maria Tishkova 2017-04-10 12:48:16 UTC
works in 8.2