Best version of Rev to use for debugging?

Chipp Walters chipp at chipp.com
Thu Sep 18 15:15:01 EDT 2003


Jan,

Great hacks. Thanks so much for your help.

-Chipp

> -----Original Message-----
> From: use-revolution-admin at lists.runrev.com
> [mailto:use-revolution-admin at lists.runrev.com]On Behalf Of Jan Schenkel
> Sent: Wednesday, September 17, 2003 12:16 AM
> To: use-revolution at lists.runrev.com
> Subject: RE: Best version of Rev to use for debugging?
> 
> 
> --- Chipp Walters <chipp at chipp.com> wrote:
> > Hey Jan, Thanks!
> > 
> > Does this fix the problem with the variable watcher,
> > too? Where the left
> > column (variables) get's mixed up with the right
> > column.
> > 
> > -Chipp
> > 
> 
> Hi Chipp,
> 
> No it desn't, but I may have come up with a recipe to
> fix this as well -- haven't done much testing though,
> so be careful with it :
> 
> - first backup the stack :
>     \global environment\revvariablewatcher.rev
> 
> - then use the message box to execute
>     edit the script of card id 1002 of stack
> "revVariableWatcher"
> 
> - scroll to the handler "revUpdatePalette"
>     on revUpdatePalette pPass
> 
> - there you will see a block of the script to handle
> the fetching of variable names in an executioncontext
> 
>     set the debugContext to line it of the cContexts
> of btn "Execution Contexts"
>     debugdo "put the variableNames into fld " && quote
> & "tvnames" & quote
>     replace "@" with empty in fld "tvnames"
>     replace cr with comma in fld "tvnames"
>     replace ",," with "," in fld "tvnames"
>     put word 1 to -1 of fld "tvnames" into fld
> "tvnames"
>     if last char of fld "tvnames" is comma then delete
> last char of fld "tvnames"
>     if last item of fld "tvnames" is empty then delete
> last item of fld "tvnames"
>     sort items of fld "tvnames"
>     put empty into field "Names"
>     put empty into field "Values"
>     put 1 into field "tcline"
> 
> - now you make a small patch, just after the line
>     sort items of fld "tvnames"
>   you place
>     --PATCH
>     if char 1 of fld "tvnames" is comma then delete
> char 1 of fld "tvnames"
>     --PATCH
> 
> - the second you apply the script change, you can see
> it working correctly ; oh, and make sure to save the
> stack "revVariableWatcher" when Rev asks you to.
> 
> Hope this helps the adventurous among us,
> 
> Jan Schenkel.
> 
> =====
> "As we grow older, we grow both wiser and more foolish at the 
> same time."  (La Rochefoucauld)
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution



More information about the use-livecode mailing list