Re: Debugging libraries

2022-07-19 Thread Mark Wieder via use-livecode

On 7/19/22 15:48, Bob Sneidar via use-livecode wrote:

Thanks for the reply Mark, I did that (after declaring the global first) but 
breakpoints did not break! But then I discovered that the error was that I was 
calling a function as a command.


...and as a hint  the glx2 script editor will pop up a clairvoyance 
type-ahead bubble if you're using a command or a function properly, but 
won't if you're trying to use a function as a command or vice versa.


--
 Mark Wieder
 ahsoftw...@gmail.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Debugging libraries

2022-07-19 Thread Mark Wieder via use-livecode

On 7/19/22 15:48, Bob Sneidar via use-livecode wrote:

Thanks for the reply Mark, I did that (after declaring the global first) but 
breakpoints did not break! But then I discovered that the error was that I was 
calling a function as a command.


Shouldn't that have thrown a runtime error?

--
 Mark Wieder
 ahsoftw...@gmail.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Debugging libraries

2022-07-19 Thread Bob Sneidar via use-livecode
Thanks for the reply Mark, I did that (after declaring the global first) but 
breakpoints did not break! But then I discovered that the error was that I was 
calling a function as a command. To my recollection the sqlYoga 
sqlquery_retrieveAsData was a command like the array and record variants, but 
apparently not. It's a function so the code never got around to executing. DOH! 

Bob S


> On Jul 19, 2022, at 10:45 , Mark Wieder via use-livecode 
>  wrote:
> 
> On 7/19/22 09:00, Bob Sneidar via use-livecode wrote:
>> Hi all.
>> There is a global variable, I thought it was gRevDevelopment, where you set 
>> it to true if you need to debug a script which begins with "lib". I cannot 
>> think what that global is!
> 
> Set gRevDevelopment true to debug system stacks (starting with "rev" or 
> plugins). And remember to set it false afterwards. If you're trying to debug 
> a library that's been password-protected, though, it won't help.
> 
> -- 
> Mark Wieder
> ahsoftw...@gmail.com


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: deleting folders on server with revDeleteFolder

2022-07-19 Thread Paul McClernan via use-livecode
Yeah, what Alex said, those are posix (Unix) placeholders that point to
folders (. self, and .. parent directory), they aren’t actual real folders.

On Sun, Jul 17, 2022 at 8:21 AM Alex Tweedly via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Those folders are
>
> "." - the folder itself
>
> ".." - the parent of the folder itself.
>
> As such, neither can be deleted directly, nor do they need to be in
> order to delete the folder itself. The folder itself should be deleted
> when the current folder is set to somewhere else.
>
> So - there isn't really a problem, just don't try to delete them by
> those names.
>
>
> Alex.
>
>
> On 17/07/2022 10:16, jbv via use-livecode wrote:
> > Hi list,
> >
> > On my LC Hosting account, I have a php script that creates directories :
> >mkdir($dirname, 0755);
> > Each directory is used to temporarily store text & image files.
> >
> > Then I have a LC script that is supposed to delete those directories
> > under certain conditions. No problem for deleting files inside each
> > directory, but 2 sub-directories are systematically created, named
> > "." and ".." and those can't be deleted, either by script of via ftp.
> > Therefore, there's no way to delete the directories created via php.
> >
> > Last but not least, the doc for LC 9.6.8 says that "revDeleteFolder"
> > is the command to use to remove a folder and all its contents and that
> > it is available on both desktop and server platforms, but on my LC
> > hosting account I get : Handler: can't find handler (revDeleteFolder)
> >
> > Any idea how to solve this problem ?
> > Thank you in advance.
> > jbv
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Debugging libraries

2022-07-19 Thread Mark Wieder via use-livecode

On 7/19/22 09:00, Bob Sneidar via use-livecode wrote:

Hi all.

There is a global variable, I thought it was gRevDevelopment, where you set it to true if 
you need to debug a script which begins with "lib". I cannot think what that 
global is!


Set gRevDevelopment true to debug system stacks (starting with "rev" or 
plugins). And remember to set it false afterwards. If you're trying to 
debug a library that's been password-protected, though, it won't help.


--
 Mark Wieder
 ahsoftw...@gmail.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Debugging libraries

2022-07-19 Thread Bob Sneidar via use-livecode
Hi all. 

There is a global variable, I thought it was gRevDevelopment, where you set it 
to true if you need to debug a script which begins with "lib". I cannot think 
what that global is! 

Bob S


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode