[gdal-dev] Debugging on Windows Using Visual Studio

Frank Warmerdam warmerdam at pobox.com
Fri Dec 19 11:10:26 EST 2008

Joel Odom wrote:
> Bruce.  I'm trying to debug an app that uses GDAL from unmanaged C++
> on Visual Studio 2005.  I've tried for an hour or two to step into
> gdal, running debug sessions both from the project file from which I
> build gdal and from the app that calls into GDAL, but even when I run
> from the gdal solution itself, it still doesn't let me step through
> source code, even though the modules window says gdal15.dll is loaded
> with symbols from the same location as my .pdb file.


I have generally not had problems with this.  Did you build GDAL using
the nmake files or the solution?  I've had good luck debugging the
utilities and into GDAL itself with visual studio. I normally run things
from the commandline and pop into visual studio when things crash (even
triggering crashes at select points).

This is usually with visual studio 2003.

Best regards,
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

More information about the gdal-dev mailing list