Code::Blocks Forums

User forums => Help => Topic started by: dice on August 08, 2006, 03:06:30 pm

Title: "No source file" when debugging
Post by: dice on August 08, 2006, 03:06:30 pm
I cannot run in debug mode - below is the output of an attempt, gdb is incorrectly complaining that a file is not in place, if I run gdb from the command line it is seems ok (i could be wrong, I have never used gdb before), note there are no special settings under Debugger Settings - what should I look out for?

Building to ensure sources are up-to-date
Build succeeded
Selecting target: Debug
Adding source dir: C:\development\Current\scratch\tmp\
Adding source dir: C:\development\Current\scratch\tmp\
Adding file: .\tmp.exe
Starting debugger: done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb 5.2.1
No source file named C:/development/Current/scratch/tmp/main.cpp.
Program exited normally.
Debugger finished with status 0
Title: Re: "No source file" when debugging
Post by: killerbot on August 08, 2006, 03:37:43 pm
1) GDB 6.3.2
2) make sure your project/target is build with debug info on (project build options :  -g )
Title: Re: "No source file" when debugging
Post by: sethjackson on August 08, 2006, 07:38:50 pm
Yep you need to download GDB 6.3 otherwise debuggin won't work.....