no interfactive in IDE debugging terminal on update

CodeLite installation/troubleshooting forum
glenenglish
CodeLite Enthusiast
Posts: 19
Joined: Sun Mar 30, 2014 11:59 am
Genuine User: Yes
IDE Question: C++
Contact:

no interfactive in IDE debugging terminal on update

Post by glenenglish »

Hi
I upgraded my Codelite from 7 to 8.0 , and now the usual inside-the IDE debug terminal does not appear when debugging- a terminal window is up with the program running, stdio etc all OK. Debugging works fine, I'd just like to get the debug session back inside the Codelite IDE.

host is Debian Wheezy 32 bit.
uname -a
Linux debkal 3.2.0-4-686-pae #1 SMP Debian 3.2.51-1 i686 GNU/Linux

Any ideas? . The usual "warning: GDB: Failed to set controlling terminal : Operation not permitted" etc etc appears at the top of the terminal.
with thanks
glen

here is the debugger dump

Code: Select all

Using gdbinit file: /tmp/codelite_gdbinit.txt
Current working dir: /home/glenenglish/Projects/FB/FBV2/enc15a
Launching gdb from : ./Debug
Starting debugger  : gdb --command="/tmp/codelite_gdbinit.txt" --tty=/dev/pts/3 --interpreter=mi "./enc15a"
DEBUG>>set unwindonsignal on
DEBUG>>set breakpoint pending on
DEBUG>>set width 0
DEBUG>>set height 0
DEBUG>>set print elements 200
DEBUG>>python
DEBUG>>import sys
DEBUG>>sys.path.insert(0, '/home/glenenglish/.codelite/gdb_printers')
DEBUG>>from libstdcxx.v6.printers import register_libstdcxx_printers
DEBUG>>register_libstdcxx_printers (None)
DEBUG>>from qt4 import register_qt4_printers
DEBUG>>register_qt4_printers (None)
DEBUG>>from wx import register_wx_printers
DEBUG>>register_wx_printers (None)
DEBUG>>end
Debug session started successfully!
DEBUG>>00000001-exec-arguments 
DEBUG>>00000002-exec-run 
DEBUG>>=thread-group-added,id="i1"
=thread-group-added,id="i1"
DEBUG>>~"GNU gdb (GDB) 7.4.1-debian\n"
GNU gdb (GDB) 7.4.1-debian
DEBUG>>~"Copyright (C) 2012 Free Software Foundation, Inc.\n"
Copyright (C) 2012 Free Software Foundation, Inc.
DEBUG>>~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\nand \"show warranty\" for details.\n"
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.  Type "show copying"\nand "show warranty" for details.
DEBUG>>~"This GDB was configured as \"i486-linux-gnu\".\nFor bug reporting instructions, please see:\n"
This GDB was configured as "i486-linux-gnu".\nFor bug reporting instructions, please see:
DEBUG>>~"<http://www.gnu.org/software/gdb/bugs/>...\n"
<http://www.gnu.org/software/gdb/bugs/>...
DEBUG>>~"Reading symbols from /home/glenenglish/Projects/FB/FBV2/enc15a/Debug/enc15a..."
Reading symbols from /home/glenenglish/Projects/FB/FBV2/enc15a/Debug/enc15a...
DEBUG>>~"done.\n"
done.
DEBUG>>&"set unwindonsignal on\n"
DEBUG>>^done
DEBUG>>&"set breakpoint pending on\n"
DEBUG>>^done
DEBUG>>&"set width 0\n"
DEBUG>>^done
DEBUG>>&"set height 0\n"
DEBUG>>^done
DEBUG>>&"set print elements 200\n"
DEBUG>>^done
DEBUG>>&"python\n"
DEBUG>>&"Traceback (most recent call last):\n"
DEBUG>>&"  File \"<string>\", line 4, in <module>\n"
DEBUG>>&"  File \"/home/glenenglish/.codelite/gdb_printers/libstdcxx/v6/printers.py\", line 951, in register_libstdcxx_printers\n"
DEBUG>>&"    gdb.printing.register_pretty_printer(obj, libstdcxx_printer)\n"
DEBUG>>&"  File \"/usr/share/gdb/python/gdb/printing.py\", line 141, in register_pretty_printer\n"
DEBUG>>&"    printer.name)\n"
DEBUG>>&"RuntimeError: pretty-printer already registered: libstdc++-v6\n"
DEBUG>>&"Error while executing Python code.\n"
DEBUG>>^error,msg="Error while executing Python code."
^error,msg="Error while executing Python code."
DEBUG>>00000001^done
>> Debuggee process ID: 9430
DEBUG>>=thread-group-started,id="i1",pid="9430"
=thread-group-started,id="i1",pid="9430"
DEBUG>>=thread-created,id="1",group-id="i1"
=thread-created,id="1",group-id="i1"
DEBUG>>00000002^running
Continuing...
DEBUG>>*running,thread-id="all"
*running,thread-id="all"
DEBUG>>=library-loaded,id="/lib/ld-linux.so.2",target-name="/lib/ld-linux.so.2",host-name="/lib/ld-linux.so.2",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/ld-linux.so.2",target-name="/lib/ld-linux.so.2",host-name="/lib/ld-linux.so.2",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="linux-gate.so.1",target-name="linux-gate.so.1",host-name="linux-gate.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="linux-gate.so.1",target-name="linux-gate.so.1",host-name="linux-gate.so.1",symbols-loaded="0",thread-group="i1"
DEBUG>>&"warning: Could not load shared library symbols for linux-gate.so.1.\nDo you need \"set solib-search-path\" or \"set sysroot\"?"
DEBUG>>&"\n"
DEBUG>>=library-loaded,id="/lib/i386-linux-gnu/i686/cmov/libc.so.6",target-name="/lib/i386-linux-gnu/i686/cmov/libc.so.6",host-name="/lib/i386-linux-gnu/i686/cmov/libc.so.6",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/i386-linux-gnu/i686/cmov/libc.so.6",target-name="/lib/i386-linux-gnu/i686/cmov/libc.so.6",host-name="/lib/i386-linux-gnu/i686/cmov/libc.so.6",symbols-loaded="0",thread-group="i1"
DEBUG>>=thread-exited,id="1",group-id="i1"
=thread-exited,id="1",group-id="i1"
DEBUG>>=thread-group-exited,id="i1",exit-code="0"
=thread-group-exited,id="i1",exit-code="0"
DEBUG>>*stopped,reason="exited-normally"
Program exited normally.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: no interfactive in IDE debugging terminal on update

Post by eranif »

I am afraid you can't do that.
The "inner" terminal was removed due to various bugs, including:
- Performance when printing many logs to stdout/err
- The terminal did not work well in various scenarios when reading input from stdio was required

Eran
Make sure you have read the HOW TO POST thread
glenenglish
CodeLite Enthusiast
Posts: 19
Joined: Sun Mar 30, 2014 11:59 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: no interfactive in IDE debugging terminal on update

Post by glenenglish »

OK, understood.
That explains it !
cheers
Post Reply