debugger
Jan Schenkel
janschenkel at yahoo.com
Mon Jun 30 15:35:00 EDT 2003
--- Yves COPPE <yvescoppe at skynet.be> wrote:
> Hello,
>
>
>
> Working on Mac OSX with Rev 2
> I'd like to debug a script
> can't find the trick to use de debug menu to perform
> the debug
>
> I've searched in the doc
> Nothing
> Can anyone help me ??
>
> With Rev 1 it was easy
> Now it's a big problem ??
>
>
>
> Greetings.
> Yves COPPE
>
>
Bonsoir Yves,
Here's the trick :
- open the script you want to debug
- use the Debug menu to turn on script debugging
- now click in th white space to the left of the
script
- a red dot will appear and upon execution of that
line of the script, the debugger will stop
- below your script, at the bottom of the window
you'll see buttons 'Step into', 'Step over', 'Trace',
'Run' and 'Abort' (self-explanatory?)
- in the debug window you'll also find items 'Variable
watcher' and 'Message watcher'
- you can use these to keep track of variable contents
and the events sent through the message path
- an extra neat trick in the variable watcher, is that
you can set a 'Stop' condition ; this allows you to
start debugging once a global becomes 0, for instance
- click to the left of the name of the variable, and
enter an expression in the ask dialog box.
- you can also use the 'Debug' menu to clear all the
breakpoints, etc.
Hope this helped, and if you have any more questions,
don't hesitate to poke us,
Jan Schenkel.
=====
"As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld)
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
More information about the use-livecode
mailing list