[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mapserver-dev
Subject:    Re: [mapserver-dev] Debugger for Mapserver
From:       Mauricio Herrera <georazor () gmail ! com>
Date:       2009-02-13 8:54:04
Message-ID: 583a904e0902130054q408d2527uce0c3dbd0215a85e () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


*First thank you for to be too patient Alan!*

Sorry, I had confused,because in the mapfile(.map) exist a DEBUG MODE
(1...5). But ok.
I had done  this --enable-debug when I installed mapserver on my pc..
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!


*I do not want to abuse your kindness but I have two other questions related
to the topic**. *(I think they are very easy  questions for you,but for me
are complicated)

*Question one:*

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
(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)..

Example ( a function of mapserver):  readmapfile("/usr/local/data.map");
//like default input  test

*Question two:*

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?

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



*
thanks Alan.. I appreciate your help*


Mauricio


*------------------
*comment for expert developer community

Finally a short comment to the expert developer community (maybe I will send
in a new mail)

Well I think that for new developers like me, would be great that the
website (http://mapserver.org/) have tutorials.

About. Developing source code of Mapserver  with any open source IDE.
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..



Thank you again!










2009/2/12 Alan Boudreault <aboudreault@mapgears.com>

>
> To debug a software, it is fundamental to build it in "DEBUG" mode. When
> you
> build a software normally, the compiler uses the "RELEASE" mode. The debug
> mode means that the compiler will write all symbols and needed informations
> for the debuggers. Without these informations, you cannot debug the
> software
> properly. To build Mapserver in debug mode, use the switch "--enable-debug"
> when you configure the build (see "./configure --help" for more infos).
>
> Alan
>
> On February 12, 2009 01:04:34 am you wrote:
> > Hi Alan
> >
> > Thanks for answering!
> >
> >  Ok. I will get your tips...I will install GDB on my linux...
> >
> > Sorry, I did not understand very well this: "You only need to build
> > Mapserver in debug mode" .. How can I do that? or where?  can you explain
> > me a little more??..pleaseee..
> >
> > I am a little newbie, but I am a lot interested to develop source code
> for
> > Mapserver!!! =P
> >
> >
> > Mauricio
> >
> >
> > 2009/2/11 Alan Boudreault <aboudreault@mapgears.com>
> >
> > > Hi,
> > >
> > > You should be able to debug Mapserver with the most of debuggers. You
> > > only need to build Mapserver in debug mode. I use GDB and it works like
> a
> > > charm.
> > >
> > > Alan
> > >
> > > On February 11, 2009 04:56:27 am Mauricio Herrera wrote:
> > > > Hi developer list
> > > >
> > > > Im looking for some kind of debugger for mapserver? could you help
> me?
> > > >
> > > > Mainly I need to debug the next files: mapfile.c, mapfile.h
> mapfile.dtd
> > > > mapserv.c, mapserv.h...Because I want to modify and add some new
> > > > functions.. I have tried to debug with Builder c++ (graphical mode),
> > > > but
> > >
> > > I
> > >
> > > > could not do that! when i try to debug they show me a lot errors ..I
> > > > want to know, how the developers did for developing the source code
> for
> > > > mapserver? I can not to (compile,run or debug) the  source code of
> > > > mapserver with the Builder c++
> > > >
> > > > Pleeeeease help me
> > > >
> > > > Thanks
> > > >
> > > > Mauricio Herrera
> > >
> > > _______________________________________________
> > > mapserver-dev mailing list
> > > mapserver-dev@lists.osgeo.org
> > > http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>
>

[Attachment #5 (text/html)]

<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>



_______________________________________________
mapserver-dev mailing list
mapserver-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic