Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: ViejoCatu on May 08, 2008, 03:38:49 am

Title: Breakpoints not working
Post by: ViejoCatu on May 08, 2008, 03:38:49 am
Hi,

I'm trying to debug a protect in code::blocks, but the breakpoints doesn't seem to work, the program doesn't stop its execution.

here's the log:
*******************************************
Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Debug
Adding source dir: D:\My Documents\PC02\LAB 04\Lab04(Animales)\
Adding source dir: D:\My Documents\PC02\LAB 04\Lab04(Animales)\
Adding file: bin\Debug\Lab04(Animales).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 6.7.50.20071127
Function "D:/My Documents/PC02/LAB 04/Lab04(Animales)" not defined.
Breakpoint 1 ("D:/My Documents/PC02/LAB 04/Lab04(Animales)/Probador.c:31) pending.
Child process PID: 400
Program exited normally.
Debugger finished with status 0
********************************************

As you can see, it says "breakpoint 1 ... pending".

the project is compiled with the -g (debugging symbols) and compiler optimization switches turned off.

Can anyone help me out?

Thx.
Title: Re: Breakpoints not working
Post by: mandrav on May 08, 2008, 08:55:15 am
Avoid putting your projects in paths with special characters like ().
Title: Re: Breakpoints not working
Post by: gd_on on May 08, 2008, 11:20:25 am
Hi,
I have also seen than, sometimes, last gdb versions works better when your project has no blank characters inside path name. For example, in your case, you have 2 blanks characters, in "My Documents" and in "LAB 04". When this happen for me, I copy the whole project in a temporary folder, directly at the disk root (D:\tempLab04 for example) and it works ! :)

gd_on
Title: Re: Breakpoints not working
Post by: ViejoCatu on May 12, 2008, 10:09:50 pm
Thank you so much :D