User forums > Using Code::Blocks
how to input to a console program in debug mode
ahlongxp:
--- Quote from: sque on October 05, 2006, 05:21:59 pm ---At linux the debug doesn't pop-up a console window. But the program runs in the background.
--- End quote ---
This is what I mean.
elindio:
--- Quote from: ahlongxp on October 09, 2006, 04:42:35 am ---
--- Quote from: sque on October 05, 2006, 05:21:59 pm ---At linux the debug doesn't pop-up a console window. But the program runs in the background.
--- End quote ---
This is what I mean.
--- End quote ---
I've just downloaded the Linux version of Code::Blocks for my laptop. It is really useful!
It would be great having the console window when we are in debug mode as in the
Windows version.
When debugging programs with lines asking for an input, that is a real problem. We
do not have any interaction with the program.
Thanks a lot!
elindio
dmoore:
As a short term fix, can you just use "Debug -> Send user command to debugger" to send your input? (I'm assuming gdb will just pass this information onto your program if they share the same stdin, but maybe not...)
elindio:
Actually I can't...
When the program is waiting for the input, the button "Debug->Send user command to debugger" is disabled.
Whenever that button is enabled is to send some command to gdb,... but it does not work for the inputs.
Thanks though.
Navigation
[0] Message Index
[*] Previous page
Go to full version