Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug statements inside macros prints immediately when read #413

Open
karoria opened this issue Dec 22, 2023 · 3 comments
Open

Debug statements inside macros prints immediately when read #413

karoria opened this issue Dec 22, 2023 · 3 comments

Comments

@karoria
Copy link

karoria commented Dec 22, 2023

Hi @terjeio
I noticed that (debug,________) statements inside any macro file prints immediately when they are read by planner and not when they are actually executed. I mean they are out of sync and hence doesn't solve the purpose of debugging. Am I missing something or there is work in progress in this matter?
Regards,
Ravi

@terjeio
Copy link
Contributor

terjeio commented Dec 23, 2023

For now add a short G4 delay before the debug message.
I'll consider adding it to the data sent downstream to the planner/step execution later but it might be a bit complicated since, for motion commands, there can be many line segments that has to complete before the message can be output.

@karoria
Copy link
Author

karoria commented Dec 25, 2023

Ok. Does a G4 delay make the debug statements synchronous with previuos and next commands? In which cases adding G4 delay might help?

@terjeio
Copy link
Contributor

terjeio commented Dec 25, 2023

Yes, try G4P0.1 for a 100 ms delay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants