Hi Martin, What version of Visual Studio are you using?
It is usually pretty simple to debug GDAL driver on it. Let me give the recipe. I am in OSX right now without access to Windows. 1. Create the file nmake.local with DEBUG = ON VCVERS = 1600 (for VS2010) 2. Check you ORACLE_HOME variable If you don't have you can copy from nmake.opt and change. But if you already have ORACLE_HOME you don't need to do anything. Maybe you should add: OCI_PLUGIN = YES To have the driver as a plugin. That helps a lot at the change/testing/changing/testing phase. It is much fast to build only the plugin. 3. Run makegdal_gen.bat That will create the .vcproj file http://trac.osgeo.org/gdal/wiki/MakeFileProjects 4. Open the project in Visual Studio Check that the project properties are basic "make" and "debug". That is all you need. Press F7 will build everything but you don't need to do that if you have done in command line. 5. Prepare a command line on Project/Properties/debug I can give more info tomorrow. I can't remember how the UI goes but is very simple. 6. Create some breakpoints Open the main point you want to investigate and add a breakpoint 7. Run in debug mode That is about it. If you build the driver as a plugin, you can change one of the project/properties/make/ options to do something like: cd ogr/ogrsf_frmts/oci nmake -f makefile.vc clean nmake -f makefile.vc nmake -f makefile.vc plugin nmake -f makefile.vc plugin-install That is about it. Good luck and thanks to help with that Regards, Ivan > Date: Thu, 24 Apr 2014 22:53:29 +0200 > From: landa.mar...@gmail.com > To: gdal-dev@lists.osgeo.org > Subject: [gdal-dev] debug ogr2ogr on Windows > > Hi all, > > I am forced to debug ogr2ogr on Windows (together with OCI driver). As > a Linux user used to play with emacs/gdb it's completely new world for > me;-) I am building GDAL from cmd line using package.cmd. I added to > /Zi flag to produce pdb files. I found some recipes at [1], but with > no success. Is there any cookbook available online? Thanks for any > useful tips in advance! > > Martin > > [1] http://msdn.microsoft.com/en-us/library/0bxe8ytt.aspx > > -- > Martin Landa * http://geo.fsv.cvut.cz/gwiki/Landa > _______________________________________________ > gdal-dev mailing list > gdal-dev@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/gdal-dev
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev