Granted ic is better than print(). That’s not saying much. Just like print statements, any debug lines should be removed prior to production. IDEs like PyCharm or vscode have excellent debugging. They are free to use and supported by huge communities. I prefer the community version of PyCharm.