-
Notifications
You must be signed in to change notification settings - Fork 39
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
Improve debugging instructions #561
Comments
Hi, At second. It will be nice if you describe your problem, for which you could not find help. Otherwise, we do not know if we need to rephrase/improve some part of the documentation, or add new content. |
@Czaki, my apologies for the bad link-- guess I wasn't paying enough attention. I've fixed it to point to the same place you linked to. I think what I am looking for is new content that gives tips on how to use debugger to understand things like napari events and how things like components, vispy, qt, etc are all inheriting things. At the one community meeting, you quickly showed it in use with a Again, it's not something that is napari specific, but if napari wants new intermediate-level contributors, this would really help with that. |
I think for sure we should add debugging to https://napari.org/stable/developers/index.html#contributing I'd love to get better at it myself, rather than print statements 👀 But beyond that it's pretty generally applicable? |
Maybe as a good starting point: As I currently understand, the request is about a generic debugging tutorial, not connected to napari, and then a few remarks (like use stack information to detect from where a function is triggered, inspect events to detect what is connected to it)? Maybe we should first look for other scientific projects, if they do have such resources? If not, maybe we should even consider applying to NumFocus SDG for preparing such materials. At least for me, it will be multiple hours to prepare high-quality materials covering at least PyCharm and VSCode. And it will require multiple review hours. |
prints are still great! But yes, I think the script is part of the missing link for me. I'm pretty sure I've done that and had it not work, and other times have had it work, so I'm not doing something quite right there.
I'll work through these in the near future and give feedback on how helpful they are. but even just linking this general advice would be such a benefit!
This is EXACTLY what I'm looking for! 😄 |
Yeah I think this would be super useful to have. I live in debug mode for napari and once you get the hang of it, it's crazy how much easier it is than printing - although I'll still sometimes do a cheeky print here and there. Bonus screenshot cause I'm in the debugger as we speak with a |
Thanks @Czaki ! |
📚 New content request
For developing napari, I have slowly tried to figure out the debugger, because it helps when I can't figure out where an untyped inheritance is coming from. But, debugging still confuses me. There is documentation in building a plugin on debugging but it doesn't seem as helpful (or at least as understandable) as I'd like.
This will help new contributors be able to navigate quirks of the architecture more quickly.
I'm still confused, but would be happy to look over any PRs that people make on this topic.
Outline
The text was updated successfully, but these errors were encountered: