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 143501

Summary: User input failure in output window
Product: cnd Reporter: Egor Ushakov <gorrus>
Component: DebuggerAssignee: Egor Ushakov <gorrus>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 148204    

Description Egor Ushakov 2008-08-11 16:58:49 UTC
- use this testcase:

#include <iostream>

using namespace std;

int main(int argc, char** argv) {
    char c = getchar();
    cout << "Got: " << c;

    return 0;
}

- set output to output window
- debug the project with no breakpoints
program finishes with the message: 
Got: 1

- if you set a breakpoint you will be unable to input anything and debugging will never end
Comment 1 Egor Ushakov 2008-08-20 15:48:18 UTC
This happens because we mix program input/output with gdb mi input/output.
Changing to enhancement.
We need to redirect program streams somewhere to separate them from gdb streams.
Comment 2 alexandrov 2008-08-21 14:04:29 UTC
I am setting type as defect because in remote development there is no way to choose terminal type other than
Default(output window). So there is no possibility to debug remote projects after user input.