Bug 143501 - User input failure in output window
User input failure in output window
Status: RESOLVED FIXED
Product: cnd
Classification: Unclassified
Component: Debugger
6.x
All All
: P2 (vote)
: 6.x
Assigned To: Egor Ushakov
issues@cnd
:
Depends on:
Blocks: 148204
  Show dependency treegraph
 
Reported: 2008-08-11 16:58 UTC by Egor Ushakov
Modified: 2009-06-25 10:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo