Odd (debug...) behavior?

More
3 years 1 week ago #283526 by KenA
Running on a Sherline Mill.
Trying to debug stuff, getting weird behavior.
I swear I can't see any bugs! ;-)
Started with::
Code:
% (comment) G90 (MSG, Start message) (debug, huh) o10 if [EXISTS[#<_ken_restart_at_operation>]]     (debug, before, _ken_restart_at_operation exists)     (debug,       and has value #<_ken_restart_at_operation>;) o10 else     (debug, before: _ken_restart_at_operation does NOT exist) o10 endif #<_ken_restart_at_operation> = 0 (debug, AFTER _ken_restart_at_operation has value #<_ken_restart_at_operation>;) M30 %

When I run this, in the "messages" window, all I get is:
Code:
1 - before, _ken_restart_at_operation exists 2 - AFTER _ken_restart_at_operation has value 0.00

If I take out the first (debug, huh), I get
Code:
1 -      and has value 0.00 2 - AFTER _ken_restart_at_operation has value 0.00


"(MSG, Start message)" is never output
"(debug, huh)" is never output
only 1 of the 2 "debug" in the "if" clause is output
I have to be missing something, but I cant see it

(a more confused than normal) Ken

Please Log in to join the conversation.

More
3 years 1 week ago #283527 by KenA
Replied by KenA on topic Odd (debug...) behavior?
Sorry about the {code} crap - when I edited it it went all the !&%^$%^

Please Log in to join the conversation.

More
3 years 1 week ago #283576 by Aciera
Replied by Aciera on topic Odd (debug...) behavior?
Seems to work for me on 2.9:

 

Attachment not found

Please Log in to join the conversation.

More
3 years 6 days ago #283692 by andypugh
Replied by andypugh on topic Odd (debug...) behavior?

Sorry about the {code} crap - when I edited it it went all the !&%^$%^
It's frustrating, you need to press the "source" button and re-arrange the tags by hand, as when you edit the editor moves all the tags to the end. Which is a bug in the forum software. 

Anyway, I think I fixed it for you. 

Please Log in to join the conversation.

Time to create page: 0.074 seconds
Powered by Kunena Forum