Page 1 of 1

Where is revDebugger?

Posted: Tue Apr 28, 2015 8:52 pm
by dunbarx
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

Re: Where is revDebugger?

Posted: Wed Apr 29, 2015 12:46 am
by Simon
PHEW!

revdebuggerlibrary

I'd be lost without that fix.

Simon

Re: Where is revDebugger?

Posted: Wed Apr 29, 2015 7:24 am
by Thierry
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

Re: Where is revDebugger?

Posted: Wed Apr 29, 2015 7:29 am
by SparkOut
There's a fix? Where, where? Please share.

Re: Where is revDebugger?

Posted: Wed Apr 29, 2015 7:59 am
by Simon
My notes
revdebuggerlibrary
--revDeBugger
revDebuggerValidGlobalNames

add
filter tGlobalsRaw without "$*"
filter tGlobalsRaw without "grev*"

Re: Where is revDebugger?

Posted: Wed Apr 29, 2015 8:36 am
by SparkOut
Thanks! I will add that to my list of ide hacks.

Re: Where is revDebugger?

Posted: Wed Apr 29, 2015 3:21 pm
by dunbarx
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...

Re: Where is revDebugger?

Posted: Wed Apr 29, 2015 3:33 pm
by dunbarx
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

Re: Where is revDebugger?

Posted: Wed Apr 29, 2015 3:39 pm
by FourthWorld
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/