π This article - ππ½ thanks to MichaΓ«l B. ππ½ - explains why you should get rid of system.debug() statements and why. π
Why: you can use the Apex Replay Debugger in VSCode instead.
How: use VsCode SFDX Hardis. It has the options "Clean SFDX project sources" / "Remove System.debug from sources" that do a lot for you behind the curtains.
It has this other option "Display live logs in terminal" as well that makes the Terminal tab display the debug log.
Be sure to follow the link in the article to Bob Buzzard blog by Keir Bowden where he measured the impact of debug statements.
π LINK: