<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&nbsp; 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&nbsp; questions for you,but for me are complicated)<br>
</div><br><b>Question one:</b><br><br>Do you know if the&nbsp; files of mapserver(source code) have a function for to add the mapfile (.map) like&nbsp; input data?&nbsp; What do I want?&nbsp; only read data values from my (.MAP)&nbsp; with my GDB <br>
(with the aim of testing). Is it&nbsp;&nbsp; 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):&nbsp; readmapfile(&quot;/usr/local/data.map&quot;);&nbsp; //like default input&nbsp; test<br>
&nbsp;&nbsp;&nbsp; <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&nbsp; necessary to load the&nbsp; mapserv&#39;s executable&nbsp; 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&nbsp; with any open source IDE. <br>I think, there is not enough information in the development section.. Maybe there are&nbsp; a lot people like me that they would like to develop on mapserver and they don&#39;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">&lt;<a href="mailto:aboudreault@mapgears.com">aboudreault@mapgears.com</a>&gt;</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 &quot;DEBUG&quot; mode. When you<br>
build a software normally, the compiler uses the &quot;RELEASE&quot; 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 &quot;--enable-debug&quot;<br>
when you configure the build (see &quot;./configure --help&quot; 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>
&gt; Hi Alan<br>
&gt;<br>
&gt; Thanks for answering!<br>
&gt;<br>
&gt; &nbsp;Ok. I will get your tips...I will install GDB on my linux...<br>
&gt;<br>
&gt; Sorry, I did not understand very well this: &quot;You only need to build<br>
&gt; Mapserver in debug mode&quot; .. How can I do that? or where? &nbsp;can you explain<br>
&gt; me a little more??..pleaseee..<br>
&gt;<br>
&gt; I am a little newbie, but I am a lot interested to develop source code for<br>
&gt; Mapserver!!! =P<br>
&gt;<br>
&gt;<br>
&gt; Mauricio<br>
&gt;<br>
&gt;<br>
&gt; 2009/2/11 Alan Boudreault &lt;<a href="mailto:aboudreault@mapgears.com">aboudreault@mapgears.com</a>&gt;<br>
&gt;<br>
&gt; &gt; Hi,<br>
&gt; &gt;<br>
&gt; &gt; You should be able to debug Mapserver with the most of debuggers. You<br>
&gt; &gt; only need to build Mapserver in debug mode. I use GDB and it works like a<br>
&gt; &gt; charm.<br>
&gt; &gt;<br>
&gt; &gt; Alan<br>
&gt; &gt;<br>
&gt; &gt; On February 11, 2009 04:56:27 am Mauricio Herrera wrote:<br>
&gt; &gt; &gt; Hi developer list<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Im looking for some kind of debugger for mapserver? could you help me?<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Mainly I need to debug the next files: mapfile.c, mapfile.h mapfile.dtd<br>
&gt; &gt; &gt; mapserv.c, mapserv.h...Because I want to modify and add some new<br>
&gt; &gt; &gt; functions.. I have tried to debug with Builder c++ (graphical mode),<br>
&gt; &gt; &gt; but<br>
&gt; &gt;<br>
&gt; &gt; I<br>
&gt; &gt;<br>
&gt; &gt; &gt; could not do that! when i try to debug they show me a lot errors ..I<br>
&gt; &gt; &gt; want to know, how the developers did for developing the source code for<br>
&gt; &gt; &gt; mapserver? I can not to (compile,run or debug) the &nbsp;source code of<br>
&gt; &gt; &gt; mapserver with the Builder c++<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Pleeeeease help me<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Thanks<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Mauricio Herrera<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; mapserver-dev mailing list<br>
&gt; &gt; <a href="mailto:mapserver-dev@lists.osgeo.org">mapserver-dev@lists.osgeo.org</a><br>
&gt; &gt; <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>