First Time with Hello World but blank Output

General questions regarding the usage of CodeLite

First Time with Hello World but blank Output

Postby BigAl » Tue Mar 13, 2018 8:42 pm

[CentOS7]
Some lessons learned for first timers on platforms like mine:

1) During the setup wizard, you're prompted for a choice of "Makefile Generator". Don't choose "GNU Makefile onestep build". I don't know what that is but it generates a non-working Makefile. Leave it as "Default".

2) I set a breakpoint where it prints "Hello World" to stdout but nothing appeared in the black "Output" dialog, in the lower left window. I added additional print statements and ensure they were null terminated and called fflush, etc., but still nothing ever appeared in the "Output" dialog. It turns that that this "Output" window is not intended to display text sent from the debugged app to the stdout out (or even stderr). It is intended to display only internal logging from codelite's code.
The text from my app appears in a detached window BEHIND the IDE. You have to start the debug session, then move the IDE to the side to reveal it (must be repeated, every time you run the debugger).
BigAl
CodeLite Curious
 
Posts: 2
Joined: Tue Mar 13, 2018 8:21 pm

Re: First Time with Hello World but blank Output

Postby DavidGH » Tue Mar 13, 2018 9:20 pm

Hi,
Don't choose "GNU Makefile onestep build". I don't know what that is but it generates a non-working Makefile. Leave it as "Default".

'Default' is the best starting point for most things ;) .

The text from my app appears in a detached window BEHIND the IDE.

CodeLite doesn't try to do that, and it doesn't happen for me (debian). I suspect it's due to your Window Manager settings.

Regards,

David
DavidGH
CodeLite Plugin
 
Posts: 531
Joined: Wed Sep 03, 2008 7:26 pm


Return to Using CodeLite

Who is online

Users browsing this forum: No registered users and 11 guests