Author Topic: Debugging and Console not working in command-line projects  (Read 4931 times)

Offline resander

  • Multiple posting newcomer
  • *
  • Posts: 49
Debugging and Console not working in command-line projects
« on: June 26, 2012, 09:38:25 am »
These problems started after updating to svn 7932 in April and I posted a topic 'After upgrade to Codeblocks svn 7932 debugging does not work'.

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 also work

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
 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 or Shift F7 works

Before svn7932 console and debugging worked fine.

I have just seen a thread 'help: no console in newer daily builds...' in the Using Codeblocks forum that also reports problems with command-line programs. Jens confirms and will fix the problem in svn8047.

I am using Ubuntu 10.04.03 LTS and Codeblocks svn7965. The Ubuntu Upgrade Manager showed that Codeblocks svn8032 was available. I tried upgrading but the update manager reported:

W: Failed to fetch http://apt.jenslody.de/pool/main/c/codeblocks/codeblocks_10.05svn8032-2_i386.deb
  404  Not Found

W: Failed to fetch http://apt.jenslody.de/pool/main/c/codeblocks/codeblocks-common_10.05svn8032-2_all.deb
  404  Not Found

I need to modify and use open source software that use input from the console, but I cannot do this when console and debugging is not working.

Hopefully, svn8047 will be with us soon. Approximately when?

Ken

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Debugging and Console not working in command-line projects
« Reply #1 on: June 26, 2012, 09:51:15 am »
svn r8059 is actual in my debian repo.
And the update manager should find it.

Nevertheless, you should change the settings in your sources.list according to my posts in the nightly build thread (see my site for instructions).
If ubuntu 10.04 works with the stable version, your settings should be okay, but it seems the update manager tries to pickup a version that no longer exists in my repo.

Note:
 I do not keep older revisions, they just get deleted on repo updates.

Offline resander

  • Multiple posting newcomer
  • *
  • Posts: 49
Re: Debugging and Console not working in command-line projects
« Reply #2 on: June 26, 2012, 10:10:05 pm »
Thanks Jens!

My etc/apt sourcelist file had gone out of date and I changed it to use the 'stable' alternative.

Ubuntu detected the new version svn8059 and installed it successfully.

The command-line, console window and debugging now work fine.

Again many thanks

Ken