Visual Studio Code Setup

Let’s say I want to use visual studio code debugger to be able to debug code inside the fastai library. For example I would like to be able to debug my own python script but also enter into fastai code to see what is going on at execution time. What would be the best way to setup this?

Thanks,