Hi Joaquim (merci per la resposta). Thanks for your answer. Now I'm trying to make the projec works in Visual Studio. And after that I think I'll can apply what you say. Thanks!
De: Joaquim Manuel Freire Luís <[email protected]> Enviado el: dijous, 29 de juny de 2023 16:20 Para: Joaquim Manuel Freire Luís <[email protected]>; Abel Pau <[email protected]>; [email protected] Asunto: RE: Debugging in Visual Studio 2019? Second SS From: gdal-dev <[email protected]<mailto:[email protected]>> On Behalf Of Joaquim Manuel Freire Luís via gdal-dev Sent: Thursday, June 29, 2023 3:15 PM To: Abel Pau <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]> Subject: Re: [gdal-dev] Debugging in Visual Studio 2019? Debugging with VS is actually simple. You need: - To build GDAL and your driver in debug mode - Step 1, see Screenshot_1. Load one executable that has a code path into that of your driver (gdalinfo?) - Step 2, see Screenshot_2. Right-click on Properties and give the full set of options to run the executable select in 2) - Load the c/c++ codes and set breakpoints. - Hit F5, etc... (here I'm assuming you know how to use the debugger) NOTE. Screenshot_2 will be sent in a second message as the limit for the attach is so low that makes is very difficult to attach images- Good luck Joaquim From: gdal-dev <[email protected]<mailto:[email protected]>> On Behalf Of Abel Pau Sent: Thursday, June 29, 2023 2:15 PM To: [email protected]<mailto:[email protected]> Subject: [gdal-dev] Debugging in Visual Studio 2019? Não costuma receber e-mails de [email protected]<mailto:[email protected]>. Saiba por que motivo isto é importante<https://aka.ms/LearnAboutSenderIdentification> 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:[email protected]] Can anyone give me some clue? Thanks in advance!!
_______________________________________________ gdal-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/gdal-dev
