[gdal-dev] Debugging in Visual Studio 2019?

Abel Pau a.pau at creaf.uab.cat
Thu Jun 29 06:14:56 PDT 2023


Hi everyone,
I am a little stuck in something. Let's see if someone can help me.

I'm immersed in the creation of a new driver.
First step OK: download GDAL from GitHub, install some dependences, and use Cmake to create GDAL for Visual Studio. Big one project.
Second step OK: Add a new driver in ogr (using another project as inspiration) in this big project (adding some lines in CmakeLists etc..)
Third step: fill all functions to really make this driver work.
I'm stuck here. I want to debug in Visual Studio to complete the Third step but I don't know how. There is any way to debug something (in Visual Studio project I created using CMake) like a simple transformation "ogr2ogr layer.shp MiraMon_layer.pol ". I'm interested in debug inside the code to see if all is as I expect and this kind of things developers do... If not, then I supose I have to use testing
After having the project created I don't know how to debug it.
[cid:image001.png at 01D9AA9C.763B7B10]

Can anyone give me some clue? Thanks in advance!!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20230629/a11c2c1e/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 6831 bytes
Desc: image001.png
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20230629/a11c2c1e/attachment-0001.png>


More information about the gdal-dev mailing list