Discussion:
Unable to proceed the debugging from cout statement
Raja
2014-10-22 13:53:20 UTC
Permalink
While debugging a sample C++ program in netbeans I am unable to continue the process at from cout statement. cout output is not visible anywhere and cin is not taking input.


Code:

int main(int argc, char** argv) {

int switchVar = 0;
cout<<"enter a number"<<endl;
cin>>switchVar;

switch(switchVar)
{
}





Process is not moving from cin statement and I don't know where to give switchVar value. Do i need to change any settings?

Program is working good while running.

[/img][/code]
soldatov
2014-10-22 14:36:16 UTC
Permalink
Do you speak about Windows and MinGW? In this case "Run|Console Type=External Terminal" mode should be used.
Loading...