This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[Kdevelop 4] Internal terminal I/O problems

Tags: None
(comma "," separated)
ropius
Registered Member
Posts
5
Karma
0
OS
I am new user of kdevelop and expierence nasty bug (or not bug, but still something nasty):
I cannot debug at all with KDevelop.
I created some generic C++ terminal application and tried to run in Kdevelop. Internal terminal does not accept any input.
Then I switch to external terminal(Konsole).
It accepts input and produces output, but when I run Debug terminal pop-ups and message popup, that I need chmod tty's or add user to tty group (I did both things), because GDB cannot connect to it and program run stalls.
After googling half hour and finding some mailing list messages from Kdevelop 1.x and Kdevelop 3.x times with same problems and some vague hints about FIFO in freeBSD port, I found no solution.
What I am doing wrong and what workarounds are here (without doing all compiling and debuging from command line >:( )?

I need either I/O in internal terminal or debugger running with KDE's native multi terminal emulator, called Konsole.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Can you please provide the explicit text of the error message?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS
I'm sorry, I don't know about how that konsole+gdb thing works. I can, however, confirm that the kdevelop output view does not support input. That's not a bug, it just is not implemented.


I'm working on the KDevelop IDE.
wotan
Registered Member
Posts
131
Karma
-2
OS
I think ropius was speaking about the embedded Konsole of Kdevelop, not only the Output which are two separate tabs at the bottom. Also, yes, to me it should take on an input.

Apart from that, I am no power user, also, as a newbie, what I would first try to do is to uninstall Kdevelop with package manager ( maybe purge too) and than re-install.. Who knows, maybe it solve the embedded terminal will then work
ropius
Registered Member
Posts
5
Karma
0
OS
Exact message, when I run KDevelop external terminal (Konsole) is
Code: Select all
GDB cannot use the tty* or pty* devices.
Check the settings on /dev/tty* and /dev/pty*
As root you may need to "chmod ug+rw" tty* and pty* devices and/or add the user to the tty group using "usermod -G tty username".

I did both things exactly what says message, to no luck.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Please provide the output of these commands:
Code: Select all
ls -la /dev/tty* /dev/pts/

Code: Select all
id


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
ropius
Registered Member
Posts
5
Karma
0
OS
id output:
Code: Select all
uid=1000(entd) gid=100(users) groups=100(users),5(tty),6(disk),7(lp),10(wheel),91(video),93(optical),94(floppy),95(storage),96(scanner)

tty's list:
http://pastebin.com/JraSpmin
gdb when run in cmd line, not from IDE, works fine.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
For your console application, are you using Konsole? As far as I am aware, KDevelop simply embeds Konsole...


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
ropius
Registered Member
Posts
5
Karma
0
OS
bcooksley wrote:For your console application, are you using Konsole? As far as I am aware, KDevelop simply embeds Konsole...

How to use it embeded?
It spits out output into info window similiar to compiler output window. And external terminal selection calls seperate konsole. I just didn't find way to use it, if it exists.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
The "internal terminal" you speak of is an embedded Konsole. There is a similar feature in Dolphin.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell