How to use MSVC++ debugger with SDL?

Could anyone tell me, or at least hint, how to set up a project in
Microsoft Visual C++ 6 so that the debugger steps into SDL functions ?

Of course if I just set up a project which includes SDL headers and
libraries and turn on the debugger, that works fine, but the debugger
will not step into the SDL C source.

Best,

Allen

You will have to compile SDL yourself. The binaries on the website do
not include debug information.

“Allen W. Ingling” wrote:>

Could anyone tell me, or at least hint, how to set up a project in
Microsoft Visual C++ 6 so that the debugger steps into SDL functions ?

Of course if I just set up a project which includes SDL headers and
libraries and turn on the debugger, that works fine, but the debugger
will not step into the SDL C source.

Best,

Allen

Adam Gates wrote:

You will have to compile SDL yourself. The binaries on the website do
not include debug information.

Thanks for the reply. In fact I’d done that, no joy. There is more to it
than just that ?

Best,

Allen

Adam Gates wrote:> You will have to compile SDL yourself. The binaries on the website do

not include debug information.

“Allen W. Ingling” wrote:

Could anyone tell me, or at least hint, how to set up a project in
Microsoft Visual C++ 6 so that the debugger steps into SDL functions ?

Of course if I just set up a project which includes SDL headers and
libraries and turn on the debugger, that works fine, but the debugger
will not step into the SDL C source.

Best,

Allen


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Thanks for the reply. In fact I’d done that, no joy. There is more to
it
than just that ?

Have you made sure that your app is loading the DEBUG version of the SDL.DLL
and not the retail version?

One way would be to remove all SDL.DLLs off your system except your debug
one just to make sure it loads up the right one, then once your done
debugging you can clean off the debug version and reinstall the retail one.

mike

One way would be to remove all SDL.DLLs off your system
except your debug

…or you link the debugging version as SDLd.DLL/SDLd.LIB
and use those when linking your project.