Author Topic: Breakpoints not working  (Read 3586 times)

ViejoCatu

  • Guest
Breakpoints not working
« 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.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Breakpoints not working
« Reply #1 on: May 08, 2008, 08:55:15 am »
Avoid putting your projects in paths with special characters like ().
Be patient!
This bug will be fixed soon...

Offline gd_on

  • Lives here!
  • ****
  • Posts: 797
Re: Breakpoints not working
« Reply #2 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
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.4 (tests with 3.3), Msys2 Compilers 13.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

ViejoCatu

  • Guest
Re: Breakpoints not working
« Reply #3 on: May 12, 2008, 10:09:50 pm »
Thank you so much :D