Where is revDebugger?

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

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

Where is revDebugger?

Post by dunbarx » Tue Apr 28, 2015 8:52 pm

I have long used Thierry's hack to eliminate system globals when debugging. I cannot live without this.

As of v. 6.7.4, There is no longer a stack named "revDebugger" in which I can hack the stack script. Yet I do believe there is a debugger stack included with that version. Anyone know if the name of that stack has changed? How about in v.7? V.8?

Craig Newman

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

Re: Where is revDebugger?

Post by Simon » Wed Apr 29, 2015 12:46 am

PHEW!

revdebuggerlibrary

I'd be lost without that fix.

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

Thierry
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 875
Joined: Wed Nov 22, 2006 3:42 pm

Re: Where is revDebugger?

Post by Thierry » Wed Apr 29, 2015 7:24 am

dunbarx wrote:I have long used Thierry's hack to eliminate system globals when debugging. I cannot live without this.
Hi Craig,

I'm feeling old, reading this...

Thierry
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!

SparkOut
Posts: 2949
Joined: Sun Sep 23, 2007 4:58 pm

Re: Where is revDebugger?

Post by SparkOut » Wed Apr 29, 2015 7:29 am

There's a fix? Where, where? Please share.

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

Re: Where is revDebugger?

Post by Simon » Wed Apr 29, 2015 7:59 am

My notes
revdebuggerlibrary
--revDeBugger
revDebuggerValidGlobalNames

add
filter tGlobalsRaw without "$*"
filter tGlobalsRaw without "grev*"
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

SparkOut
Posts: 2949
Joined: Sun Sep 23, 2007 4:58 pm

Re: Where is revDebugger?

Post by SparkOut » Wed Apr 29, 2015 8:36 am

Thanks! I will add that to my list of ide hacks.

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

Re: Where is revDebugger?

Post by dunbarx » Wed Apr 29, 2015 3:21 pm

This is Thierry's hack:

First, open the script of stack "revdebugger". --or "revDebuggerLibrary" in v. 6.7.4 and above. NOTE that you may have to quit and restart LC for the changes to take place
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
Thank heaven for this.

Now please tell me whether this can be done in v.6.7.4 or above. If I try to execute:

Code: Select all

edit the script of stack "revdebugger"
I get a little note that there is no such stack
I WILL stay with an earlier version until I can find out where the %$#&*^ debugger stack is.

Craig

EDIT.

Just read Simon's post above that the name of the debugger is now "revDebuggerlibrary". Thanks for that. All is well again...

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

Re: Where is revDebugger?

Post by dunbarx » Wed Apr 29, 2015 3:33 pm

Thierry.
Hi Craig,

I'm feeling old, reading this...
Old? I bet I am the oldest person on this forum. I voted for Stevenson.

Craig

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10057
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Where is revDebugger?

Post by FourthWorld » Wed Apr 29, 2015 3:39 pm

FWIW the Debugger library uses the new text-only stack format, so you can edit it with any text editor you like.

You'll find these text-only libraries in the LiveCode application folder, in <LC app>/Toolset/Libraries/
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply