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 - User input failure in output window
Summary: User input failure in output window
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Egor Ushakov
URL:
Keywords:
Depends on:
Blocks: 148204
  Show dependency tree
 
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
Exception Reporter:


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.