Please check this for details -> https://forums.fast.ai/t/five-ways-to-debug-in-fastai/66496
Where @ slawekbiel has mentioned 5 steps of debugging Python code using FastAI v2 as example.
He has shown on how to use VSCode to debug as well.
More over, the limitation with Colab was that you couldn’t use it as a IDE. This is now enabled with VSCode and JupyterLab (ie., I suppose using nbcovert on the notebooks created).