Trying to get the codelite debugger to work in Ubuntu linux

Ok… I’m trying to get the codelite debugger to work in Ubuntu Linux.  It seems to be having some issues at the moment.
So… I’m at the code lite website:http://codelite.org/LiteEditor/Debugging

I have my project open and active…. I press the F5 key..

Hmm.. does it work … Nope…
A couple of things seems to be going wrong..

Debug session started successfully!
Debuggee process ID: 6775
GNU gdb (GDB) 7.0-ubuntu
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type “show copying”
and “show warranty” for details.
This GDB was configured as “i486-linux-gnu”.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>…
Reading symbols from /home/jonas/.codelite/CppClass/hw_lab_7/Debug/hw_lab_7…
done.
set unwindonsignal on
set breakpoint pending on
set width 0
set height 0
Found the breakpoint ID!
Storing debugger breakpoint Id=1
Successfully set breakpoint 1 at: address 0
Found the breakpoint ID!
Storing debugger breakpoint Id=2
Successfully set breakpoint 2 at: address 0
ERROR: failed to place breakpoint: “^error,msg=”No source file named /home/jonas/.codelite/CppClass/HW_project2/HW_Project.cpp.””
No source file named /home/jonas/.codelite/CppClass/HW_project2/HW_Project.cpp.
ERROR: failed to place breakpoint: “^error,msg=”No source file named /home/jonas/.codelite/CppClass/HW_project2/HW_Project.cpp.””
No source file named /home/jonas/.codelite/CppClass/HW_project2/HW_Project.cpp.
ERROR: failed to place breakpoint: “^error,msg=”No source file named /home/jonas/.codelite/CppClass/HW_project2/HW_Project.cpp.””
No source file named /home/jonas/.codelite/CppClass/HW_project2/HW_Project.cpp.
=thread-group-created,id=”6775″
=thread-created,id=”1″,group-id=”6775″
Continuing…
*running,thread-id=”all”
=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″
Warning:\nCannot insert breakpoint 1.\nError accessing memory address 0x0: Input/output error.

Also the terminal window has this message:

&”warning:  GDB: Failed to set controlling terminal: Operation not permitted\n”

So…. Time for a little googling:
http://sourceforge.net/users/dymaxionuk

Ok… for me the solution was simple.  I updated from the codelite site and all was well.

Apparently, the version that was in synaptic was having issues.

This entry was posted in Uncategorized. Bookmark the permalink.

One Response to Trying to get the codelite debugger to work in Ubuntu linux

  1. ArCorvus says:

    Hi!

    You must compile your project with the debuging data. Add compiler switch -g for g++ compiler.
    Don’t forget fully recompile your project.

    Good luck!

Leave a Reply

Your email address will not be published. Required fields are marked *