Page 1 of 1

?-debug-syntax breaks on paperfolder()

Posted: 19 Aug 2015 19:35
by Papoulka
I think this is a bug but this is my first use of a few things here and it may be confusion... Anyway, I have a script with command

Code: Select all

paperfolder(...);
which executes fine. However, trying to debug with the command

Code: Select all

?paperfolder(...);
causes the expected break but then the "paperfolder(...)" command is unrecognized.

Re: Per-command prompt breaks "paperfolder"

Posted: 19 Aug 2015 20:00
by highend
Uh?

To debug it, place a step; before it. What command should ?paperfolder(...) be?

Re: Per-command prompt breaks "paperfolder"

Posted: 19 Aug 2015 22:15
by Papoulka
Ref the SC Help for "step", discussing the simplified "?" option -

The following works as advertised, if I understand the Help correctly:

Code: Select all

focus "L";
 $a=1;
 ?$b=2;
 paperfolder("test", "C:\Temp", "|");
 $c=3;
But this fails with the paperfolder() command becoming unrecognized after the step:

Code: Select all

focus "L";
 $a=1;
 $b=2;
 ?paperfolder("test", "C:\Temp", "|");
 $c=3;

Re: Per-command prompt breaks "paperfolder"

Posted: 19 Aug 2015 22:20
by highend
Ref the SC Help for "step", discussing the simplified "?" option -
Wasn't aware of this...
But this fails with the paperfolder() command becoming unrecognized after the step:
Yeah, indeed, looks like a bug, other commands work...

I've renamed the thread accordingly...

Re: ?-debug-syntax breaks on paperfolder()

Posted: 20 Aug 2015 10:42
by PeterH
Hey: didn't know the ?-syntax, too :shock:
Will try to remember...

To paperfolder: this isn't a complete instruction, just a function. Though it's usually executable.
Try ?$x = paper...; :arrow: maybe it works.

Re: ?-debug-syntax breaks on paperfolder()

Posted: 20 Aug 2015 11:40
by bdeshi
I know that step shorthand! +100 xp bonus for me :P

when using this at the beginning of AB scripts, remember to use the :: prefix. Else it's interpreted as a search. I know it's obvious, but I make that mistake all the time... :oops:

Re: ?-debug-syntax breaks on paperfolder()

Posted: 20 Aug 2015 11:52
by highend
To paperfolder: this isn't a complete instruction, just a function. Though it's usually executable.
All other functions I've tried worked (without trying to assign them a variable (if they have a return value))...

Re: ?-debug-syntax breaks on paperfolder()

Posted: 20 Aug 2015 15:54
by admin
Indeed a :bug: and it applied to all *functions* (as opposed to commands).

This won't work:

Code: Select all

::?ghost(, -1); //toggle ghost filter
Well, next version it does work.