I'm new to VS Code debugging setup so I'm hoping for someone who will provide me with a deeper understanding of how it works. Please note that I have read the documentation, but preLaunchTask
property in launch.json
in particular is not clear to me.
Using VS Code's documentation, I've created a launch.json
file and customized the parameters to match my project. This all works.
However, what I'm not understanding is why the value for preLaunchTask
is tsc: build - tsconfig.json
. Why does this value work? I can't find any information regarding this other than the example shown in the docs.
Looking through StackOverflow, I see an example on how to customize preLaunchTask
. It points to the creation of a tasks.json
file that will execute the command to kick off transpiling the TypeScript code into JavaScript.
Looking at my own project, when I use tsc: build - tsconfig.json
, it works without having a task.json
defined under .vscode
folder. When I change it to anything else, it doesn't work. Does anyone know why that is?
Can anyone point me to the documentation page, perhaps, that explains how this part of preLaunchTask
works?