[REBOL] Re: do file
From: carl::cybercraft::co::nz at: 12-Aug-2001 12:45
Hi Jim,
On 12-Aug-01, Jim Clatfelter wrote:
> btn 142.128.110 "Run" [
> file: second split-path to-file file-path
> do file
> ]
> I put this into my rebol editor so that I could run the script from
> the editor. When I hit the run button, the script I'm editing runs,
> and I lose the editor. Is there a way to run the script in addition
> to the editor?
The reason your editor window disappears is because your script's main
layout grabs the editor's face. Change the script's "view layout" to
view/new layout
and the editor window should stay open, though you
may lose control of it till your script finishes running.
However, depending on how your script works, the above change my stuff
it up. Also, errors in your script will cause your editor to crash
too unless you capture them at the point you do the script.
My approach would be to just launch another REBOL and run your script
in its Console. Then all the script's errors will appear there and
you'll be able to examine its variables and so on from there too.
This is how I work anyway, though my editor's not written in REBOL
and so I only need the one REBOL running.
> I just want to check my progress as I'm working on. I
> don't want to close the editor.
> Jim
--
Carl Read