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 - C++ std::flush does not output to the debug window while debugger running 8.1 and 8.1(Beta)
Summary: C++ std::flush does not output to the debug window while debugger running 8.1...
Status: RESOLVED WORKSFORME
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Maria Tishkova
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-04 15:07 UTC by speeltronics
Modified: 2017-04-10 12:48 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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