While the logger package is great (I use it myself), I strongly disagree that a logger is the answer to your problems.
When using VS Code check the status bar. There is an option switch to debug just your code or the sdk. If you set it to just your code, you might have less trouble.