Odd (debug...) behavior?
- KenA
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
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!
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!
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.
- KenA
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
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.
- Aciera
- Offline
- Administrator
Less
More
- Posts: 4060
- Thank you received: 1751
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.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23178
- Thank you received: 4868
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.064 seconds