Bug 188459 - console no caputre output from debuged application writen by "C"
Summary: console no caputre output from debuged application writen by "C"
Status: RESOLVED NOT A BUG
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 3.5.4
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-30 11:01 UTC by Jaroslav Zeman
Modified: 2009-03-31 17:38 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Zeman 2009-03-30 11:01:29 UTC
Version:           3.5.4 (using KDE 3.5.10)
Compiler:          gcc 4.3.2 
OS:                Linux
Installed from:    Fedora RPMs

In debug state in application using C language, console tab, not have icon (icon is only question mark), and console no capture any output from debugged application (console window is empty), and also frame stack tab not have icon (icon is only question mark). Output in application is sends to standard output over printf function over stdio.h.

After application is finished (return in main function), debugger no stop, and I must stop debugger over Stop toolbar.

Not have effect as Kdevelop is running, (I am test menu KDE or console with root privilege, in Gnome Kdevelop is locked during start and not function).

System: Fedora Core 10  i686, kernel 2.6.27.19
Comment 1 Andreas Pakulat 2009-03-30 11:14:43 UTC
Are you running with a separate terminal window for I/O? If not the output should appear in the application toolview.
Comment 2 Jaroslav Zeman 2009-03-30 12:51:43 UTC
I am not using settings "Enable separate terminal for application IO" (Project - Debugger), because when I am set this check box, debugger not function, and when I am run debugger, after kdevelop no answers on all user action and I am must kdevelop kill.

And setting Project - Run Options "Start in external terminal", not have affect to capture output to console tab.
Comment 3 Andreas Pakulat 2009-03-30 14:02:12 UTC
So you do not see any output from your app in the toolview labelled "Application" when running it through gdb?
Comment 4 Jaroslav Zeman 2009-03-30 15:49:08 UTC
Frame stack tab is displayed (OK, however without icon, only text) and also I can view variables and create watch and send DBG command over DBG tab. Others tabs are OK.

Some icons in toolbar, kdevelop setting not have images (is here only question mark). Reinstalling kdevelop not solve some problems.

GDB is running with command:
/bin/sh –c libtool gdb path_to_application --interpreter=mi2 -quiet
Comment 5 Andreas Pakulat 2009-03-30 17:24:34 UTC
That doesn't answer my question: Do you or do you not see the output from the application in the toolview thats labelled "Application"?

Regarding the missing icons: Thats a distro bug or a problem on your system.
Comment 6 Jaroslav Zeman 2009-03-30 17:38:31 UTC
This tab not exists.
Comment 7 Andreas Pakulat 2009-03-30 18:47:13 UTC
Do you have a "Messages" toolview?
Comment 8 Jaroslav Zeman 2009-03-31 08:44:39 UTC
Yes, I have.

I have question. What size using icons in kdevelop? It is possible set size icons? Problem with icons I am partially solved, I copy all icons from others directories with icons to directory /usr/share/icons/oxygen, that using default setting KDE. All places with “?” in tabs, buttons, toolbar and menu are already filled by icon, but many icons are blurred, it means, than icons not have correct size, and mass icons are magnified from original size.

Now I am test remove selinux from system and test kdevelop. I suppose, that problem is linked with selinux and wrong rights for kdevelop and his child’s process. There upon not function console, and is missed tab application with outputs from running program.
Comment 9 Andreas Pakulat 2009-03-31 11:14:24 UTC
Sounds as if you're running KDevelop3 inside a KDE4 environment, thats not supported, you need to setup a KDE3 environment including the kde3 kdebase module (which contains many of the icons kdevelop uses). So this is clearly a setup issue on your system and not a bug in kdevelop.
Comment 10 Jaroslav Zeman 2009-03-31 14:19:11 UTC
I am not using KDE4, please see top. FC10 using KDE 3.5.10. And problems with icons are subsidiary, base error is, that not work console a not present tab application.
Comment 11 Andreas Pakulat 2009-03-31 15:19:38 UTC
Then where are oxygen icons coming from? And why did you link something around? KDevelop only uses icons it installs itself or icons that are shipped with KDE itself. If they are not shown something in your system is broken.

As far as the missing application tab goes: Please attach the .kdevelop file from that project. Also do you see the application tab if you just execute your application?
Comment 12 Jaroslav Zeman 2009-03-31 16:13:42 UTC
Eureka! After removing selinux from system over yum, console is OK and Application tab with capture output debugged application too. Kdevelop respective gdb has wrong set selinux rights for root and others users.

I am tests some icon-theme in KDE, after test, looks OK, when I am using theme with name: Crystal svg.

Problem is solved!
Comment 13 Andreas Pakulat 2009-03-31 17:38:57 UTC
ok, so after all it was a setup/install problem on your system (though not kde4 involved). Good to know its working now for you.