Page 1 of 1

Debugger can't find source files

Posted: Tue Feb 17, 2009 6:48 pm
by rjmccann
Hi,

I've just installed CodeLite and have built the application in the quickstart. I've sorted out getting it to build with Debug and Release but when I try and debug the application none of my breakpoints fire. The debug log looks as follows:

Code: Select all

Debug session started successfully!
Debuggee process ID: 1152
GNU gdb 6.8
Copyright (C) 2008 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 "i686-pc-mingw32"...
set  new-console on
set unwindonsignal on
set width 0
set height 0
No source file named C:/Projects/HelloWork/helloworld_app.cpp.
No source file named C:/Projects/HelloWork/helloworld_app.cpp.
Continuing...
[New thread 1152.0x864]
Program exited normally.
Debug session ended
So can anyone help explain why the debugger doesn't see the source files and why the breakpioints don't fire. I'm running on a Windows XP Professional service pack 2 machine.

TIA Jackson

Re: Debugger can't find source files

Posted: Tue Feb 17, 2009 6:58 pm
by eranif
Hi,

1. Which version of codelite?
2. Please enable debugger logging from settings -> debugger settings -> enable full logging
3. Which version of g++ are you using? for g++ 4.0 try this solution http://codelite.org/forum/viewtopic.php ... stab#p1340

If all not working, return here with the debugger output (when full logging is enabled)

Eran

Re: Debugger can't find source files

Posted: Tue Feb 17, 2009 8:16 pm
by rjmccann
Hi,

I'm running the latest stable bundle of CodeLite, gcc and wxWidgets; codelite-1.0.2759-mingw3.4.5-wx2.8.7.exe

Here is the full debug log as requested

Code: Select all

DEBUG>>set  new-console on
DEBUG>>set unwindonsignal on
DEBUG>>set width 0
DEBUG>>set height 0
-break-insert "C:/Projects/HelloWork/helloworld_frame.cpp:37"
DEBUG>>00000002-break-insert "C:/Projects/HelloWork/helloworld_frame.cpp:37"
Debug session started successfully!
DEBUG>>00000003-exec-run 
DEBUG>>~"GNU gdb 6.8\n"
GNU gdb 6.8
DEBUG>>~"Copyright (C) 2008 Free Software Foundation, Inc.\n"
Copyright (C) 2008 Free Software Foundation, Inc.
DEBUG>>~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\n"
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
DEBUG>>~"This is free software: you are free to change and redistribute it.\n"
This is free software: you are free to change and redistribute it.
DEBUG>>~"There is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\n"
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
DEBUG>>~"and \"show warranty\" for details.\n"
and "show warranty" for details.
DEBUG>>~"This GDB was configured as \"i686-pc-mingw32\"...\n"
This GDB was configured as "i686-pc-mingw32"...
DEBUG>>(gdb)
DEBUG>>&"set  new-console on\n"
set  new-console on
DEBUG>>^done
DEBUG>>(gdb)
DEBUG>>&"set unwindonsignal on\n"
set unwindonsignal on
DEBUG>>^done
DEBUG>>(gdb)
DEBUG>>&"set width 0\n"
set width 0
DEBUG>>^done
DEBUG>>(gdb)
DEBUG>>&"set height 0\n"
set height 0
DEBUG>>^done
DEBUG>>(gdb)
DEBUG>>&"No source file named C:/Projects/HelloWork/helloworld_frame.cpp.\n"
No source file named C:/Projects/HelloWork/helloworld_frame.cpp.
DEBUG>>00000002^error,msg="No source file named C:/Projects/HelloWork/helloworld_frame.cpp."
No source file named C:/Projects/HelloWork/helloworld_frame.cpp.
DEBUG>>(gdb)
Debuggee process ID: 1748
DEBUG>>00000003^running
Continuing...
DEBUG>>(gdb)
DEBUG>>~"[New thread 1748.0xf1c]\n"
[New thread 1748.0xf1c]
DEBUG>>00000003*stopped,reason="exited-normally"
Program exited normally.
Debug session ended
This was the first project I created and it started out in the default location under 'C:\Program Files\CodeLite'. So I had moved it to a directory without spaces in the path as suggested in another thread about debugger problems to see if that fixed the problem. I've recreated the project from scratch now and the new version does debug properly; I am still curious as to why the first version is having this problem.

Thanks for your help.

Jackson