Hi Giuseppe,

I changed subject,

in order to get some feedback after a crash, you can add this before running your code:

;--------8<--------- invisible logging --------8<--------

log-file: %/path/to/file.txt

*print: :print
print: func [data /log][
        if not log [*print data]
        write/append log-file append reform data "^/"
]

*probe: :probe
probe: func [data /log][
        if not log [*probe data]
        write/append log-file append reform data "^/"
]
;--------8<--------- invisible logging --------8<--------

this wont' cure all your problems, but now, at least, whatever you print or probe, 
gets logged to a file, so you can print as much info as you can and review what 
happened AFTER the crash... that's what I do when I get to a point where code becomes 
unstable.

It helped me find my crashing glayout issue.


can anyone tell me if there is a function which is used to add trace messages even if 
only for netword stuff...  maybe we can patch that one too so that trace gets silently 
dumped to a file too...  :-)

would be nice for off-line stats and access logs too.

-MAx
---
"You can either be part of the problem or part of the solution, but in the end, being 
part of the problem is much more fun."
 

> -----Original Message-----
> From: Giuseppe Chillemi [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 25, 2004 10:45 AM
> To: [EMAIL PROTECTED]
> Subject: [REBOL] R: Re: Rebol READ/lines http://page Crashes 
> (And he did
> it again)
> 
> 
> 
> Hi Maximo,
>       Rebol Interpreter crashed again under Windows.
>       I have not tried to open ports directly and I won't do it for a
> couple as I need to study that chapter of the Rebol Guide.
>       It would be really usefull if Rebol could be started in 
> "DEBUG MODE"
> logging some of its operations to send the information to Carl.
> 
>       Giuseppe Chillemi
>       
> 
> 
> > -----Messaggio originale-----
> > Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Per conto di
> > Maxim Olivier-Adlhoch
> > Inviato: giovedì 25 marzo 2004 14.55
> > A: [EMAIL PROTECTED]
> > Oggetto: [REBOL] Re: Rebol READ/lines http://page Crashes
> > 
> > 
> > have you tried the application by using ports direcly ?
> > 
> > it also has a /line mode which lets you extract content one 
> line at a
> > time...
> > 
> > you might also do:
> > 
> > >> trace/net on
> > 
> > to see what is happening and try to understand WHY its crashing...
> > 
> > -MAx
> > ---
> > "You can either be part of the problem or part of the 
> solution, but in the
> > end, being part of the problem is much more fun."
> > 
> > 
> > > -----Original Message-----
> > > From: Giuseppe Chillemi [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, March 25, 2004 5:49 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: [REBOL] Rebol READ/lines http://page Crashes
> > >
> > >
> > >
> > >
> > > I have finally completed my first Rebol program. It is a kind
> > > of spider
> > > which reads web pages and perform some work on them.
> > >
> > > From time to time I experience a crash of the Rebol
> > > interpreter. On the
> > > first READ attempt I get an error (intercepted with TRY), at
> > > the second
> > > attempt Rebol BUMS !
> > >
> > > I am not able to reproduce it because the problem depens from
> > > the network,
> > > the os and not from my script.
> > >
> > > Has anyone experienced the same problem ?
> > >
> > >
> > >
> > > Thanks
> > >
> > >
> > >
> > > Giuseppe Chillemi
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > To unsubscribe from this list, just send an email to
> > > [EMAIL PROTECTED] with unsubscribe as the subject.
> > >
> > >
> > 
> > --
> > To unsubscribe from this list, just send an email to
> > [EMAIL PROTECTED] with unsubscribe as the subject.
> 
> 
> 
> 
> -- 
> To unsubscribe from this list, just send an email to
> [EMAIL PROTECTED] with unsubscribe as the subject.
> 
> 

-- 
To unsubscribe from this list, just send an email to
[EMAIL PROTECTED] with unsubscribe as the subject.

Reply via email to