[mapserver-dev] RE: [mapserver-users] Debugging a CGI in MSVC

Administrator jnovak at novacell.com
Tue Nov 19 00:07:59 EST 2002


Go to Project->Settings->Debug->General and place a string in the
Program Arguments box that resembles:
 
QUERY_STRING=mode=browse&layer=DAWorks&zoomdir=0&zoomsize=2&img=..%2Ftmp
%2FDEMO10352555823296.png&imgxy=299.5+299.5&imgext=-175.552728+-160.5527
28+175.552728+190.552728&map=C%3A%5CInetpub%5Cwwwroot%5Cnovacell%5Cdemo.
map&savequery=true&program=%5Ccgi-bin%5Cmapservercgi.exe&map_web_imagepa
th=C%3A%5Cinetpub%5Cwwwroot%5Ctmp%5C&map_web_imageurl=..%2Ftmp%2F&CMD=ZO
OM_IN&INPUT_TYPE=auto_rect&INPUT_COORD=73%2C224%3B213%2C300&minx=&miny=&
maxx=&maxy=&imagewidth=&imageheight=
 
I use a running web app to generate the string I wnat, then prepend the
QUERY_STRING=.  This triggers a special debugging case in mapserv.c main
that will set up the CGI stuff for debug execution.
 
JN
 
 From: Pradeep [mailto:pradeepkumar at infotech.stph.net] 
Sent: Monday, November 18, 2002 8:33 PM
To: Mapserver-Users; mapserver-dev
Subject: [mapserver-users] Debugging a CGI in MSVC
Importance: High



	Greetings
	        I have the mapserver sources running on windows,
compiled using the MSVC compiler,I wish to debug it, and follow the code
flow setting some break points in the code, as far as now I was
unsuccessful trying to debug the CGI exe, I have used __asm {int 3};
statement to programatically set break points in the code, but still the
VC debugger fails to launch. In essense can any user working in windows
environment tell me How to debug a CGI application?
	 
	Thanks for your time
	Pradeep.
	 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20021118/a903c4bf/attachment.html


More information about the mapserver-dev mailing list