<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD>
<BODY style="COLOR: #000000; FONT-FAMILY: Arial">
<DIV><SPAN class=668270505-19112002><FONT size=2>Go to 
Project-&gt;Settings-&gt;Debug-&gt;General and place a string in the Program 
Arguments box that resembles:</FONT></SPAN></DIV>
<DIV><SPAN class=668270505-19112002><FONT size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=668270505-19112002><FONT 
size=2>QUERY_STRING=mode=browse&amp;layer=DAWorks&amp;zoomdir=0&amp;zoomsize=2&amp;img=..%2Ftmp%2FDEMO10352555823296.png&amp;imgxy=299.5+299.5&amp;imgext=-175.552728+-160.552728+175.552728+190.552728&amp;map=C%3A%5CInetpub%5Cwwwroot%5Cnovacell%5Cdemo.map&amp;savequery=true&amp;program=%5Ccgi-bin%5Cmapservercgi.exe&amp;map_web_imagepath=C%3A%5Cinetpub%5Cwwwroot%5Ctmp%5C&amp;map_web_imageurl=..%2Ftmp%2F&amp;CMD=ZOOM_IN&amp;INPUT_TYPE=auto_rect&amp;INPUT_COORD=73%2C224%3B213%2C300&amp;minx=&amp;miny=&amp;maxx=&amp;maxy=&amp;imagewidth=&amp;imageheight=</FONT></SPAN></DIV>
<DIV><SPAN class=668270505-19112002><FONT size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=668270505-19112002><FONT size=2>I use a running web app to 
generate the string I wnat, then prepend the <SPAN 
class=668270505-19112002><FONT size=2>QUERY_STRING=.&nbsp; This triggers a 
special debugging case in mapserv.c main that will set up the CGI stuff for 
debug execution.</FONT></SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=668270505-19112002><FONT size=2><SPAN 
class=668270505-19112002></SPAN></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=668270505-19112002><FONT size=2><SPAN 
class=668270505-19112002>JN</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=668270505-19112002><SPAN 
class=668270505-19112002></SPAN></SPAN><FONT face=Tahoma><FONT size=2><SPAN 
class=668270505-19112002><FONT 
face=Arial>&nbsp;</FONT></SPAN></FONT></FONT></DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN 
class=668270505-19112002>&nbsp;</SPAN><STRONG>From:</STRONG> Pradeep 
[mailto:pradeepkumar@infotech.stph.net] <BR><B>Sent:</B> Monday, November 18, 
2002 8:33 PM<BR><B>To:</B> Mapserver-Users; mapserver-dev<BR><B>Subject:</B> 
[mapserver-users] Debugging a CGI in MSVC<BR><B>Importance:</B> 
High<BR><BR></DIV></FONT></FONT>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV><SPAN class=080452704-19112002><FONT size=2>Greetings</FONT></SPAN></DIV>
  <DIV><SPAN class=080452704-19112002>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <FONT size=2>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?</FONT></SPAN></DIV>
  <DIV><SPAN class=080452704-19112002><FONT size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=080452704-19112002><FONT size=2>Thanks for your 
  time</FONT></SPAN></DIV>
  <DIV><SPAN class=080452704-19112002><FONT size=2>Pradeep.</FONT></SPAN></DIV>
  <DIV><SPAN 
class=080452704-19112002></SPAN>&nbsp;</DIV></BLOCKQUOTE></BODY></HTML>