[mapserver-dev] Technical manual (development manual, tutorial)?
Gustav Allen
gustav.allen at gmail.com
Fri Jul 17 05:30:50 EDT 2009
thanks for answering ...
Well I was doing exactly what you say Stephen... In reference (3)to debug
mapserv..
But I have the same problem,when I am debugging mapserv step by step ..
GDB show me *"parsing errors",* but when I am debugging mapserv without
breakpoints, *GDB show me "program exited normally"..*
MMmm it is too rare..
For example when I tried to check(step by step) the behavior of
loadlayer() or loadmapinternal() in mapfile.c... GDB show me "parsing
errors"..And only I wanted to see some internal values of
(map->layer,map->extent,layer->data,layer>connection,layer->name,etc...)
Could you show me how can you check to behaviour of loadlayer()?. or what
do you recommend me, please?
thanks
Gustav Allen
2009/7/13 Stephen Woodbridge <woodbri at swoodbridge.com>
> Gustav Allen wrote:
>
>> Hello community
>>
>>
>> I have experience installing and using MapServer on Windows and Linux
>> plataform. But now I'm interested in contributing as a developer MapServer.
>> I am interested to know: if you have technical manual (development manual,
>> tutorial or whatever) or how do you develop?. I read the info in the
>> website mapserver.org <http://mapserver.org> (development section), but
>> it is insufficient =(
>>
>> Until now, I know that I need GDB + frontend (ex. Emacs,KDbg,DDD,Nemiver)
>> for debugging mapserv executable on Linux.. I tried to debug it,but I
>> couldn't ( note: I have installed all the required libraries )..
>>
>> Always GDB detects " parsing errors in my mapfile".. But I think it is
>> impossible because my mapfiles are fine.. My web applications work with the
>> mapfiles. The same situation occurs with test files :
>> /mapserver-5.4.1/tests/test.map ... Really is very frustrating.
>> please...somebody can tell me some steps to develop on mapserver.... because
>> I haven't found clear info
>>
>
> Gustav,
>
> A few ideas to get you started:
>
> 1) if you plan to debug mapserv make sure you ./configure --with-debug
> 2) you might start debuging using shp2img
> a) start by getting shp2img to run with some command line options
> b) gdb shp2img
> break main
> run <commandline options>
> 3) to debug mapserv you can use
> a) gdb mapserv
> break main
> run QUERY_STRING='url-params-after?'
>
> Try some of these and see if you get any further.
>
> -Steve W
>
> Thanks a lot
>> Gustav Allen
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> mapserver-dev mailing list
>> mapserver-dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20090717/21bf5fba/attachment.html
More information about the mapserver-dev
mailing list