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