filter variable watch tab

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
xfrios
Posts: 24
Joined: Wed May 25, 2011 11:54 pm

filter variable watch tab

Post by xfrios » Mon May 30, 2011 11:09 pm

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!

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10306
Joined: Wed May 06, 2009 2:28 pm

Re: filter variable watch tab

Post by dunbarx » Tue May 31, 2011 6:23 am

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

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10306
Joined: Wed May 06, 2009 2:28 pm

Re: filter variable watch tab

Post by dunbarx » Tue May 31, 2011 2:49 pm

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 :)

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: filter variable watch tab

Post by mwieder » Tue May 31, 2011 8:14 pm

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

xfrios
Posts: 24
Joined: Wed May 25, 2011 11:54 pm

Re: filter variable watch tab

Post by xfrios » Tue May 31, 2011 10:39 pm

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?

xfrios
Posts: 24
Joined: Wed May 25, 2011 11:54 pm

Re: filter variable watch tab

Post by xfrios » Tue May 31, 2011 10:47 pm

I found the original post by googling 'revDebuggerValidGlobalNames revdebugger.rev', it does not contain any further detail.

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: filter variable watch tab

Post by mwieder » Wed Jun 01, 2011 12:50 am

In the menubar's View menu, select LiveCode UI Elements in Lists. The revDebugger stack will then show up in the Application Browser.

Post Reply