You don’t have to use the debug function from VSC.
This is the extension you need. I know nothing about Macs but I think you can get it from the store in VSC. then open the main folder of your game and you can test it by right-clicking on the tab and choosing the test