Digging through functions

Organizing tasks to work on, New Features Ideas, Building LCS & LCB Libraries & Widgets, Redecorating and Modifying the IDE, Hacking / Editing Tools, Compiling the Engine from Source, etc.
Post Reply
User avatar
tperry2x
Posts: 1981
Joined: Tue Dec 21, 2021 9:10 pm
Location: Somewhere in deepest darkest Norfolk, England
Contact:

Digging through functions

Post by tperry2x »

I'm digging around in various functions, to see what might be left over and interesting.
I stumbled on this. Does anyone have any ideas as to what it's intended to do?

Code: Select all

on revVerboseDebug pWhat
   global gREVVerboseDebug
   set the cVerboseDebug of stack "revPreferences" to pWhat
   -- setting this 'cause its going to crash, so save now
   -- MM-2011-03-13: [[ Bug 10073]] Make sure the stack file version is maintained at 2.7 for backwards compatability reasons
  revInternal__SavePreferences
   set the cVerboseDebug of stack "revPreferences" to pWhat
   set the messageMessages to pWhat
   put pWhat into gREVVerboseDebug
   if pWhat then
      delete file "verboseLog.txt"
      open file "verboseLog.txt" for text write
   end if
end revVerboseDebug
User avatar
richmond62
Posts: 3264
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Digging through functions

Post by richmond62 »

The fact that '2.7' is mentioned suggests that is a fairly ancient bit of code.

Code: Select all

pWhat
or rather the role it seems to perform there makes me think of the 5 levels in HyperCard:
-
HCIntro8.gif
HCIntro8.gif (2.93 KiB) Viewed 868 times
-
https://vintageapple.org/macprogramming ... e_1987.pdf
https://richmondmathewson.owlstown.net/
User avatar
tperry2x
Posts: 1981
Joined: Tue Dec 21, 2021 9:10 pm
Location: Somewhere in deepest darkest Norfolk, England
Contact:

Re: Digging through functions

Post by tperry2x »

It was the line:

Code: Select all

-- setting this 'cause its going to crash, so save now
that got my attention.
User avatar
richmond62
Posts: 3264
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Digging through functions

Post by richmond62 »

In the light of that line of code you wonder why the whole thing was left in the IDE and not removed.
https://richmondmathewson.owlstown.net/
User avatar
richmond62
Posts: 3264
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Digging through functions

Post by richmond62 »

Presumably . . .

Code: Select all

set the cVerboseDebug of stack "revPreferences" to pWhat
pWhat is a variable, so the first thing has to be to find out if verbose debugging can have parameters.

https://livecode.com/topic/debugging/

https://en.wikipedia.org/wiki/Verbose_mode

Queer, as as far as I can understand debugging is either verbose or not, and verbose debugging is not something that admits of degree.
-
Screenshot 2024-04-21 at 16.35.14.png
Screenshot 2024-04-21 at 16.35.14.png (188.24 KiB) Viewed 857 times
https://richmondmathewson.owlstown.net/
User avatar
tperry2x
Posts: 1981
Joined: Tue Dec 21, 2021 9:10 pm
Location: Somewhere in deepest darkest Norfolk, England
Contact:

Re: Digging through functions

Post by tperry2x »

richmond62 wrote: Sun Apr 21, 2024 1:28 pm Presumably . . .

Code: Select all

set the cVerboseDebug of stack "revPreferences" to pWhat
pWhat is passed either a true or false, on revVerboseDebug pWhat - It's the rest I'm wondering about. Perhaps ties into something in the revPreferences stack or the engine itself.

Seems to dump whatever it would be to a text file. Of course, there are varying levels of verbosity.

I don't know what relevance that image above has to do with anything, but it just means yet more scrolling for someone following along :| :?:
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests