variables in debugger

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
Fermin
Posts: 149
Joined: Fri Jun 05, 2015 10:44 pm

variables in debugger

Post by Fermin » Thu Oct 22, 2015 10:16 am

Hi, Is there any way to hide the $ variables in the debugger, or better yet, show only selected variables?
Thank you very much in advance.

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

Re: variables in debugger

Post by dunbarx » Thu Oct 22, 2015 4:33 pm

Hi.

First, open the script of stack "revDebugger" (or "revDebuggerLibrary")

Look for the function "revDebuggerValidGlobalNames" around line 223. Replace it with:

Code: Select all

function revDebuggerValidGlobalNames
   local tGlobalsRaw
   put the globals into tGlobalsRaw
   
   replace comma with return in tGlobalsRaw
  
   filter tGlobalsRaw without "*(x86)"
    filter tGlobalsRaw without "$*"
     filter tGlobalsRaw without "grev*"
   replace return with comma in tGlobalsRaw
   
   return tGlobalsRaw
end revDebuggerValidGlobalNames
You will have to do this every time you upgrade LC, but it is such a pleasure. Thierry is the one to thank.

Craig Newman

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: variables in debugger

Post by Simon » Thu Oct 22, 2015 10:17 pm

Did you see in LC 8 they now have a toggle for removing the $ vars?

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Fermin
Posts: 149
Joined: Fri Jun 05, 2015 10:44 pm

Re: variables in debugger

Post by Fermin » Fri Oct 23, 2015 11:04 am

DUNBARX. Ok. I will study it.
SIGMUND: I'm working with LC7, because LC8 gave me problems when I tried it a few months ago, but I think I'll try again.
Thank you both for your answers.
Gracias. :)

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: variables in debugger

Post by Klaus » Fri Oct 23, 2015 11:57 am

Fermin wrote:SIGMUND:...
:D :D :D

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

Re: variables in debugger

Post by dunbarx » Fri Oct 23, 2015 1:53 pm

It was a Freudian slip.

Craig

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: variables in debugger

Post by Simon » Fri Oct 23, 2015 6:38 pm

Tell me about your mother...
Do you feel she was a variable?

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

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

Re: variables in debugger

Post by mwieder » Fri Oct 23, 2015 7:45 pm

...sometimes a variable is just a variable.

Fermin
Posts: 149
Joined: Fri Jun 05, 2015 10:44 pm

Re: variables in debugger

Post by Fermin » Fri Oct 23, 2015 10:24 pm

I'm so sorry, SIMON. I just saw the error. I do not speak good English and use the help of Google Translator. I usually always go over what I write, like this time, but I confess that I have not noticed the names. I ask sincerely apologize and will try not happen again.

Although this time I do not see that Google T. has changed the name ... it may have been the word processor ... or my own subconscious (Grrrr ... Frrrreeeud !!!). Anyway. Again I apologize.

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: variables in debugger

Post by Simon » Fri Oct 23, 2015 10:43 pm

No worries Fermin, we all got a good chuckle out of it. (I wonder what Google Translate will do with that sentence?)

Keep on LiveCoding!

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply