Odd (debug...) behavior?
22 Oct 2023 19:23 - 24 Oct 2023 11:33 #283526
by KenA
Odd (debug...) behavior? was created by KenA
Running on a Sherline Mill.
Trying to debug stuff, getting weird behavior.
I swear I can't see any bugs!![;-) ;-)](/media/kunena/emoticons/wink.png)
Started with::
When I run this, in the "messages" window, all I get is:
If I take out the first (debug, huh), I get
"(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
Trying to debug stuff, getting weird behavior.
I swear I can't see any bugs!
![;-) ;-)](/media/kunena/emoticons/wink.png)
Started with::
%
(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:
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
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
Last edit: 24 Oct 2023 11:33 by andypugh.
Please Log in or Create an account to join the conversation.
22 Oct 2023 19:26 #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 or Create an account to join the conversation.
23 Oct 2023 05:52 #283576
by Aciera
Replied by Aciera on topic Odd (debug...) behavior?
Attachments:
Please Log in or Create an account to join the conversation.
24 Oct 2023 11:36 #283692
by andypugh
Anyway, I think I fixed it for you.
Replied by andypugh on topic Odd (debug...) behavior?
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.Sorry about the {code} crap - when I edited it it went all the !&%^$%^
Anyway, I think I fixed it for you.
Please Log in or Create an account to join the conversation.
Time to create page: 0.103 seconds