Debugging can be done in different ways, I want to report only how to do it with AL Object Designer. This great extension is always evolving, a must for every installation of VS Code and Microsoft AL.
With AL Object Designer, it is possible to manage all Business Central objects, both manually and through the Generation Wizard.