Can I use Visual Studio Code to directly debug scripts? How?
No. That's not for JavaScript running in the browser. It's for debugging node.js and similar.
To debug an IMatch App, use the debugger tools in the browser of your choice (<F12>). All included.
For details about VSC, usage etc. see the extensive documentation provided by Microsoft and the many video tutorials.