Registered Member
|
Hi,
I'm quite new to KDevelop, and when I'm trying to launch the debug mode using GDB, I get the following error:
and just an empty sh window will open. I tried of course to follow the instructions, but that did not work. How can I solve this? Thanks, Ran P.S. I use Kubuntu 12.04, KDevelop 4.3.1 GDB 7.4-2012.04 |
Administrator
|
Are you able to use Konsole, and is devpts mounted at /dev/pts? (You can check the output of "mount" to see that).
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Konsole is working fine for me. According to mount, devpts is mounted:
Thanks, |
Administrator
|
If you attempt to run GDB manually in Konsole on an application does it function properly there?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
When I run GDB directly from Konsole, it works fine.
|
Registered Member
|
I've just noticed that the problem occurs only when I use the Use External Terminal option under Launch Configurations. If I use KDevelop's output it works fine (but the program can't get any input from the user...).
|
Administrator
|
This is an implementation issue in the KDevelop terminal support then, you'll need to await an answer from the KDevelop devs as to why this happens.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Hi,
I know that the KDevelop terminal doesn't allow user input, and that is not what I would like to have now. What I'm looking for is a way to make GDB work with a program that is run through KDevelop using the External Terminal option (which does support user input). |
Administrator
|
Hmm.. Can you check to see if the External Terminal being launched is Konsole, or another application/component?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Hi,
Sorry for the late reply. Konsole is the external terminal being launched. Here is the exact command:
It is the default line for the External Terminal option. My konsole version is 2.8.5. |
Administrator
|
If you execute that command yourself, from a terminal does it function properly? (You'll need to substitute in the appropriate variables of course).
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Launching the program using Konsole from KDevelop works perfectly, and also using the same command to launch it manually.
The problem is when you try to debug it using GDB and KDevelop. After pressing the debug button in the toolbar, it shows a terminal window named ~ : sh and the pop-up error message I wrote in the first post. When I look at it again, in the Configure Lauches window, the specification of the debugger shell is empty. Those are photos of the Configure Launches window: |
Administrator
|
Sorry, i'm out of ideas as to what the problem could be. Only thing I can recommend at this point is a bug report so that this issue does not get forgotten. It would be appreciated if you could include full steps to reproducing this issue, including any special points about the needed configuration.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, Sogou [Bot]