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