How to debug Python code in Visual Studio Code

  • This hits me in the feels right now. I've been trying to convert from JetBrains to VS Code. And every time I do, stuff like this gets in my way.

    For instance: Python. Pycharm: I click on the side for a breakpoint, and then trigger a test to run, and it just works. I keep thinking I'm missing something for VS Code as it never quite works as smooth, but I have better things to do and I move on.

    And then I see an article like this which makes it seem like it's not so straightforward.