But the debug statements will still stay right? Which is kind of unnecessary once your code is finalized?
Like for me personally, I am ok to keep them for future development help. But will be your call?
will you remove them once you are done?
I have a logging framework built on this concept, which allows me to enable/disable logging from various backend/frontend components when needed. Sometimes, when things go wrong in production, it makes sense to conditionally enable logging for certain components and code section to figure out what is happening.
So what about a scenario where the issue is on users main project and not your demo project.
I mean if its not reproducible on your machine then what do you do?