Please use the Apache issue tracking system for new NetBeans issues ( !!

Bug 143501

Summary: User input failure in output window
Product: cnd Reporter: Egor Ushakov <gorrus>
Component: DebuggerAssignee: Egor Ushakov <gorrus>
Status: RESOLVED FIXED QA Contact: issues <>
Priority: P2    
Version: 6.x   
Target Milestone: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Report:
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.
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo