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

How to debug iter2 code not working correctly? #3

Open
telotortium opened this issue Apr 13, 2022 · 1 comment
Open

How to debug iter2 code not working correctly? #3

telotortium opened this issue Apr 13, 2022 · 1 comment
Labels

Comments

@telotortium
Copy link

telotortium commented Apr 13, 2022

As part of kidd/org-gcal.el#160, I'm working on some code that uses iter2 (via a library https://github.com/skeeto/emacs-aio that I ported to use iter2 instead of iter). I'm having some issues with my code, though. Namely, the loop that I've linked seems to somehow yield early, so that only the first entry in org-gcal-fetch-file-alist is actually processed. What would be the best way to debug the code to see where exactly I'm running into an issue? I know about iter2-generate-tracing-functions, but I'm unsure how exactly to interpret the output of this.

telotortium added a commit to telotortium/iter2 that referenced this issue Apr 13, 2022
Make the output of this much easier to read for complex functions.

See doublep#3
@doublep
Copy link
Owner

doublep commented Apr 13, 2022

I'm unsure how exactly to interpret the output of this

Sorry, I'm a bit rusty with this, haven't used in a long time. I use it in a private project, but haven't had to debug it since years. So, you need to investigate yourself.

At least some time ago it used to work nicely under Edebug. E.g. set some breakpoints and try g mode. Stepping through also worked fine as far as I remember.

If you discover that iter2 itself behaves incorrectly, please open an issue. A good way to assess is to try using generator library (i.e. iter-defun) and see if the bug persists (then it's in your code) or is gone (then it's likely a fault of iter2).

telotortium added a commit to telotortium/org-gcal.el that referenced this issue May 2, 2022
telotortium added a commit to telotortium/org-gcal.el that referenced this issue May 5, 2022
telotortium added a commit to telotortium/org-gcal.el that referenced this issue Jul 9, 2022
telotortium added a commit to telotortium/org-gcal.el that referenced this issue Jul 15, 2022
telotortium added a commit to telotortium/org-gcal.el that referenced this issue Jul 28, 2022
telotortium added a commit to telotortium/org-gcal.el that referenced this issue Jul 31, 2022
telotortium added a commit to telotortium/org-gcal.el that referenced this issue Nov 19, 2022
telotortium added a commit to telotortium/org-gcal.el that referenced this issue Nov 19, 2022
telotortium added a commit to telotortium/org-gcal.el that referenced this issue Nov 29, 2022
telotortium added a commit to telotortium/org-gcal.el that referenced this issue May 9, 2023
telotortium added a commit to telotortium/org-gcal.el that referenced this issue Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants