Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Antwort: Rebol with Xitami?

From: t_degrav:rhrk:uni-kl at: 16-Nov-2000 17:00

Hi Mat! Chris wrote:
> Mat Bettinson wrote: > > > Is there any easy way to see script errors if your script blows out > > when being used as a CGI? Currently you just see nothing which made > > today's debugging most laborious. > > If you put a print {Content-Type: text/html^/^/} on the line following > the Rebol header (before you do anything else) it should display any > errors in your web browser. If you are having problems getting that to > work, try adding <HTML><BODY> after the ^/^/, that may help on some > brwosers. You'll probably need to check the page source if your browser > is fairly strict about page displaying. > > Chris
Chris is right, this usually works quite well, you just get the Rebol error message in your browser. But as you seemed to have configuration problems with your server calling the script you didn't even get this far. Maybe I could have mentioned that many server/OS combinations require something like "#!/rebol/rebol -cs" as the first line in the script, but as this differs a lot (I for example with IIS/NT don't need this at all) I didn't. I just wanted to provide the script and not comment on CGI configuration... Hope you can use it now! Tom