<b>First thank you for to be too patient Alan!</b><br>
<br>Sorry, I had confused,because in the mapfile(.map) exist a DEBUG MODE (1...5).
But ok. <br>I had done this --enable-debug when I installed mapserver on my pc.. <br>I followed your tips: I installed GDB and I added a graphical interface (KDbg and DDD) on my linux distribution. Today, I am debugging the MapServer executable, thanks a lot!<br>
<br><div style="text-align: left;" id="result_box" dir="ltr"><br><b>I do not want to abuse your kindness but I have two other questions related to the topic</b><b>. </b>(I think they are very easy questions for you,but for me are complicated)<br>
</div><br><b>Question one:</b><br><br>Do you know if the files of mapserver(source code) have a function for to add the mapfile (.map) like input data? What do I want? only read data values from my (.MAP) with my GDB <br>
(with the aim of testing). Is it possible to do ?. Do I need to modify any file? or I need to configure GDB for to get input data from my mapfile(.MAP).. <br><br>Example ( a function of mapserver): readmapfile("/usr/local/data.map"); //like default input test<br>
<br><b>Question two:</b><br><br>If I want to debug mapfile.c for to see its operation in real time with input data (.MAP) , is it necessary to load the mapserv's executable on the GDB?<br><br>I asked this because I did some test with KDbg and DDD.. And I insert several breakpoints in the mapfile.c . And never stopped... Only entered in the next files: cgiutil.c,mapio.c and obviolsly mapserv.c<br>
<br><br><br><b><br>thanks Alan.. I appreciate your help</b><br><br><br>Mauricio<br><br><br><b>------------------<br></b>comment for expert developer community<br><br>Finally a short comment to the expert developer community (maybe I will send in a new mail)<br>
<br>Well I think that for new developers like me, would be great that the website (<a href="http://mapserver.org/">http://mapserver.org/</a>) have tutorials. <br><br>
About. Developing source code of Mapserver with any open source IDE. <br>I think, there is not enough information in the development section.. Maybe there are a lot people like me that they would like to develop on mapserver and they don't know how to begin..<br>
<br><br><br>Thank you again!<br><br><br><br><br><br><br><br><br><br><br><div class="gmail_quote">2009/2/12 Alan Boudreault <span dir="ltr"><<a href="mailto:aboudreault@mapgears.com">aboudreault@mapgears.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
To debug a software, it is fundamental to build it in "DEBUG" mode. When you<br>
build a software normally, the compiler uses the "RELEASE" mode. The debug<br>
mode means that the compiler will write all symbols and needed informations<br>
for the debuggers. Without these informations, you cannot debug the software<br>
properly. To build Mapserver in debug mode, use the switch "--enable-debug"<br>
when you configure the build (see "./configure --help" for more infos).<br>
<font color="#888888"><br>
Alan<br>
</font><div><div></div><div class="Wj3C7c"><br>
On February 12, 2009 01:04:34 am you wrote:<br>
> Hi Alan<br>
><br>
> Thanks for answering!<br>
><br>
> Ok. I will get your tips...I will install GDB on my linux...<br>
><br>
> Sorry, I did not understand very well this: "You only need to build<br>
> Mapserver in debug mode" .. How can I do that? or where? can you explain<br>
> me a little more??..pleaseee..<br>
><br>
> I am a little newbie, but I am a lot interested to develop source code for<br>
> Mapserver!!! =P<br>
><br>
><br>
> Mauricio<br>
><br>
><br>
> 2009/2/11 Alan Boudreault <<a href="mailto:aboudreault@mapgears.com">aboudreault@mapgears.com</a>><br>
><br>
> > Hi,<br>
> ><br>
> > You should be able to debug Mapserver with the most of debuggers. You<br>
> > only need to build Mapserver in debug mode. I use GDB and it works like a<br>
> > charm.<br>
> ><br>
> > Alan<br>
> ><br>
> > On February 11, 2009 04:56:27 am Mauricio Herrera wrote:<br>
> > > Hi developer list<br>
> > ><br>
> > > Im looking for some kind of debugger for mapserver? could you help me?<br>
> > ><br>
> > > Mainly I need to debug the next files: mapfile.c, mapfile.h mapfile.dtd<br>
> > > mapserv.c, mapserv.h...Because I want to modify and add some new<br>
> > > functions.. I have tried to debug with Builder c++ (graphical mode),<br>
> > > but<br>
> ><br>
> > I<br>
> ><br>
> > > could not do that! when i try to debug they show me a lot errors ..I<br>
> > > want to know, how the developers did for developing the source code for<br>
> > > mapserver? I can not to (compile,run or debug) the source code of<br>
> > > mapserver with the Builder c++<br>
> > ><br>
> > > Pleeeeease help me<br>
> > ><br>
> > > Thanks<br>
> > ><br>
> > > Mauricio Herrera<br>
> ><br>
> > _______________________________________________<br>
> > mapserver-dev mailing list<br>
> > <a href="mailto:mapserver-dev@lists.osgeo.org">mapserver-dev@lists.osgeo.org</a><br>
> > <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br>
<br>
</div></div></blockquote></div><br>