I have the same issue here, since some time.
It should work id the command to call the terminal-emulator contains a -T (like the default one for xterm).
The followin patch should fix it (at least it works fine here with it).
I wonder why it ever has worked with terminal-emulators, that do not use -T for setting the title, but e.g. -t like gnome-terminal.
Cab other Linux (and probaly mac-) users test the patch and give some feedback here ?
Index: src/sdk/cbplugin.cpp
===================================================================
--- src/sdk/cbplugin.cpp
+++ src/sdk/cbplugin.cpp
@@ -900,7 +900,7 @@ wxString cbDebuggerPlugin::GetConsoleTty(int ConsolePid)
do
{
// check for correct "sleep" line
- if (psCmd.Contains(wxT("-T")))
+ if (psCmd.Find(ConsPidStr) != wxNOT_FOUND)
break; //error;wrong sleep line.
// found "sleep 93343" string, extract tty field
ConsTtyStr = wxT("/dev/") + psCmd.BeforeFirst(' ');
Here is a result summary:
xterm -T $TITLE -x:
Build menu Run or Build&Run:
no console window
program runs to completion
Debug menu Start F8:
no console window
Debug menu Run to cursor F4:
no console window
F4 program stops OK at cursor in source code window
stepping with F7 and Shift F7 work
xterm -t $TITLE -x:
same as xterm -T $TITLE -x
gnome-terminal -t $TITLE -x
Build menu Run or Build&Run:
console window with title <project name> appears and stays
program runs to completion
Debug menu Start F8:
no console window
program runs to completion
Debug menu Run to cursor F4:
a blank window with title Program Console appears
cursor not stopping in source window (no yellow mark in left margin)
stepping with F7 does not work
gnome-terminal -T $TITLE -x
Build menu Run or Build&Run:
no console window
program did not run
Debug menu Start F8:
no console window
program runs to completion
Debug menu Run to cursor F4:
no console window
F4 program stops OK at cursor in source code window
stepping with F7 or Shift F7 works
The gnome-terminal works in part now.
This is odd, since I observed it not working for svn 7932 before, which made me start this thread. Tried many times then, even with a 10-line console main program as new project. Don't understand why it is working again.
The terminal emulator window does not always appear and that makes program command line IO impossible from codeblocks, i.e command-line programs cannot be tested.
Open Source projects are often designed for the command-line with thin GUI wrappers added afterwards, so command-line programs are still important.
Command line io was working fine before svn 7932. Hopefully it will soon be available again.
Ken