CGI; Debugging; File System Watcher;

Windows specific forum
HanPBF
Enthusiast
Enthusiast
Posts: 570
Joined: Fri Feb 19, 2010 3:42 am

CGI; Debugging; File System Watcher;

Post by HanPBF »

Hello,

as I understand, there is no way to debug PB code for a CGI request server side (for example using PB portable) due to the nature of binding.

So, I'd write any request to the file system and let another job handle it and write the answer back (or via network connection). But a network connection I don't want to use; I want to see what requests come in and have to log them either.

How could I observe a folder for new files, so the fastCGI exe can send back the answer to the client?
Anything possible with windows API? FindFirstChangeNotification?
Or shall PB poll the file system with Delay()? Is this o.k.? Maybe ImDisk...
Any ideas?

Thanks a lot in advance!
Fred
Administrator
Administrator
Posts: 18226
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: CGI; Debugging; File System Watcher;

Post by Fred »

If you develop your CGI using FastCGI, you can debug it easily with the IDE like any other program. Whne the dev is done, you can switch back to CGI and it should work the same.
HanPBF
Enthusiast
Enthusiast
Posts: 570
Joined: Fri Feb 19, 2010 3:42 am

Re: CGI; Debugging; File System Watcher;

Post by HanPBF »

Yes thanks!
Finally got it...
Thats the clue of fastcgi...;-)
Post Reply