i have a nodejs application and i make it up by grunt serve.
I am trying to debug it using visual studio code
What exactly should i put in launch.json? Any specific command for grunt? i tried following and got error could not find build task
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch",
"program": "${workspaceRoot}\\server\\server.js",
"sourceMaps": true,
"outFiles": ["${workspaceRoot}\\dist\\**/*.js"],
"preLaunchTask": "build"
}
]
}