Page 1 of 1

CGI; Debugging; File System Watcher;

Posted: Sat Sep 05, 2015 7:44 am
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!

Re: CGI; Debugging; File System Watcher;

Posted: Sat Sep 05, 2015 8:42 am
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.

Re: CGI; Debugging; File System Watcher;

Posted: Sat Sep 05, 2015 11:19 am
by HanPBF
Yes thanks!
Finally got it...
Thats the clue of fastcgi...;-)