Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Debug console not displaying program output
Debug console not displaying program output [message #190174] Thu, 26 April 2007 17:33 Go to next message
Eclipse UserFriend
Originally posted by: exceed.nc.rr.com

Hi all,

When I'm trying to debug in CDT the console isn't displaying the output.
For example if I write a simple hello world program or something,
nothing will print to the console output in the debugger. I already have
all my paths set up and whatnot so I can step through code. But if I am
for example stepping through code that requires a keyboard input, the
prompt does not appear in the console and so therefore I can't go
anywhere from there :)

Any ideas on this? Thanks..

- Brandon
Re: Debug console not displaying program output [message #190181 is a reply to message #190174] Thu, 26 April 2007 17:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: exceed.nc.rr.com

Brandon Squizzato wrote:
> Hi all,
>
> When I'm trying to debug in CDT the console isn't displaying the output.
> For example if I write a simple hello world program or something,
> nothing will print to the console output in the debugger. I already have
> all my paths set up and whatnot so I can step through code. But if I am
> for example stepping through code that requires a keyboard input, the
> prompt does not appear in the console and so therefore I can't go
> anywhere from there :)
>
> Any ideas on this? Thanks..
>
> - Brandon

Sorry I forgot to give my version info. I'm running:

Eclipse 3.2.2
CDT 3.1.2
Cygwin gdb 6.5.50 and gcc 3.4.4
Re: Debug console not displaying program output [message #190189 is a reply to message #190181] Fri, 27 April 2007 02:06 Go to previous messageGo to next message
Eclipse UserFriend
>> When I'm trying to debug in CDT the console isn't displaying the output.
>> For example if I write a simple hello world program or something,
>> nothing will print to the console output in the debugger.
Do you watch the gdb output console or the output console of your app?

Axel
Re: Debug console not displaying program output [message #190197 is a reply to message #190189] Fri, 27 April 2007 02:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: exceed.nc.rr.com

I've tried looking at both. The if I use gdb in verbose mode it spits
out everything it should be when it runs, but no program output. And no
program output on the application console itself either.

Axel wrote:
>
>>> When I'm trying to debug in CDT the console isn't displaying the
>>> output. For example if I write a simple hello world program or
>>> something, nothing will print to the console output in the debugger.
> Do you watch the gdb output console or the output console of your app?
>
> Axel
>
Re: Debug console not displaying program output [message #203028 is a reply to message #190181] Thu, 18 October 2007 02:56 Go to previous message
Eclipse UserFriend
Originally posted by: Roland.Minde.ac-b.de

Hello,
now I have suddenly exactly the same problem.
My workaround (which solves not the problem):
use Compiler Option -Wl,-subsystem,console
and the output goes to a popup window (not the console window in eclipse).

I am running:
Windows XP
Eclipse 3.3.0
CDT 4.0.0
MinGW 5 1.3 with gdb 6.6

Best Regards
Roland

"Brandon Squizzato" <exceed@nc.rr.com> schrieb im Newsbeitrag
news:f0r635$353$2@build.eclipse.org...
> Brandon Squizzato wrote:
>> Hi all,
>>
>> When I'm trying to debug in CDT the console isn't displaying the output.
>> For example if I write a simple hello world program or something, nothing
>> will print to the console output in the debugger. I already have all my
>> paths set up and whatnot so I can step through code. But if I am for
>> example stepping through code that requires a keyboard input, the prompt
>> does not appear in the console and so therefore I can't go anywhere from
>> there :)
>>
>> Any ideas on this? Thanks..
>>
>> - Brandon
>
> Sorry I forgot to give my version info. I'm running:
>
> Eclipse 3.2.2
> CDT 3.1.2
> Cygwin gdb 6.5.50 and gcc 3.4.4
Previous Topic:How to configure Run dialog if my application need root account?
Next Topic:Viewing the return value
Goto Forum:
  


Current Time: Sun May 11 21:29:04 EDT 2025

Powered by FUDForum. Page generated in 0.06422 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top