Author Topic: "No source file" when debugging  (Read 2656 times)

dice

  • Guest
"No source file" when debugging
« 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

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5192
Re: "No source file" when debugging
« Reply #1 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 )

sethjackson

  • Guest
Re: "No source file" when debugging
« Reply #2 on: August 08, 2006, 07:38:50 pm »
Yep you need to download GDB 6.3 otherwise debuggin won't work.....