Page 1 of 1

filter variable watch tab

Posted: Mon May 30, 2011 11:09 pm
by xfrios
Is there a way to filter the view for the variable watch tab?

I am not using the path information at present so I would like to remove all $PATH type ($) variables from the watch window.

Thanks!

Re: filter variable watch tab

Posted: Tue May 31, 2011 6:23 am
by dunbarx
Yes. I do this.

This was a thread several months ago. I will find it tomorrow, unless someone beats me to it.

It is SO much nicer, and so much less cluttered in normal use to lose those.

Craig Newman

Re: filter variable watch tab

Posted: Tue May 31, 2011 2:49 pm
by dunbarx
Check out Thierry's post in the Nov. 2010 archives. Works for me. I hated all those system globals. I had to scroll down all the time to see my own.

Craig Newman

Try out this simple script :

on mouseUp
local G
put the globals into G
replace comma with return in G
filter G without "$*"
put G
end mouseUp


Then go for the revdebugger.rev stack and open the stack script.

Look for the function below around line 223 :

# Returns
# A list of the globals with valid names. I.e not the ones with (x86) in them on Vista 64bit.
function revDebuggerValidGlobalNames

And there operate on the globals as shown above

And last, probably better to make a copy of your LiveCode App before starting :)

Re: filter variable watch tab

Posted: Tue May 31, 2011 8:14 pm
by mwieder
Also, for a better debugging experience, check out PowerDebug.<g> On revOnLine or view the demo revlet at http://www.ahsoftware.net/PowerTools/Po ... DDemo.html

http://www.ahsoftware.net/PowerTools/BuyPowerDebug.irev

Re: filter variable watch tab

Posted: Tue May 31, 2011 10:39 pm
by xfrios
I tried opening the revdebugger.rev stack in LiveCode. I see the application window but I'm unable to see the script for that stack. The application browser is blank with no contents. I am missing something?

Re: filter variable watch tab

Posted: Tue May 31, 2011 10:47 pm
by xfrios
I found the original post by googling 'revDebuggerValidGlobalNames revdebugger.rev', it does not contain any further detail.

Re: filter variable watch tab

Posted: Wed Jun 01, 2011 12:50 am
by mwieder
In the menubar's View menu, select LiveCode UI Elements in Lists. The revDebugger stack will then show up in the Application Browser.