Author Topic: ( no debugging symbols found ) - Breakpoints do not work - Debbuging with SDL  (Read 5254 times)

Offline Super_Stinger

  • Multiple posting newcomer
  • *
  • Posts: 10
Hi all,

I am attempting to debug an SDL application by placing breakpoints, but the message "( no debugging symbols found )" appears from the debugger.

Ive placed breakpoints in a normal console application ( not linked/compiled with SDL ) and they break the program fine, however, when I compile and SDL 2 application, I recieve the above error message.

Few Notes:
'Produce debugging symbols [-g]' is ticked in global settings
'Strip all symbols from binary ( minimizes size ) [-s]' is NOT ticked in global settings

Not sure what else it could be...

Many thanks,
Super_Stinger

Offline scarphin

  • Lives here!
  • ****
  • Posts: 644
Are you sure the SDL libraries are built with '-g' option apart from your application? Or if you are not building the SDL yourself, are you using the debug version of SDL?

Edit: And please add OS, CB, SDL version info so the devs might help if that's a CB problem.
« Last Edit: June 30, 2014, 05:08:49 pm by scarphin »

Offline Super_Stinger

  • Multiple posting newcomer
  • *
  • Posts: 10
Yep, will Add Info:

Windows 7
Codeblocks 10.05 ( Will upgrade, but dont think this would be the problem )
SDL 2.0.3

I am using the SDL development libraries from:
https://www.libsdl.org/download-2.0.php
( SDL2-devel-2.0.3-mingw.tar.gz (MinGW 32/64-bit) )
« Last Edit: June 30, 2014, 05:44:52 pm by Super_Stinger »

Offline Super_Stinger

  • Multiple posting newcomer
  • *
  • Posts: 10
Hi all again, I think I've found the problem

It seems that because my CodeBlocks was out of date ( 10.05 ), It did not debug properly.

I updated ( to 13.12 ) and everything seems to work fine! :)