Gruntfile and Build Process Development - tsgrp/HPI GitHub Wiki

VSCode is capable of debugging Gruntfile as HPI builds. This is very useful to work with the complex build. Note this was as of VSCode 1.7.2

See here for general info on debugging in VSCode: https://code.visualstudio.com/docs/editor/debugging#_launch-configurations

Here is a sample VSCode config for debugging Gruntfile:

    "configurations": [

        {
            "type": "node",
            "request": "launch",
            "name": "Debug Gruntfile",
            "program": "${workspaceFolder}/node_modules/grunt/bin/grunt",
            "args": [
                "clean",
                "server:debug",
                "--project=hpi-demo-alf",
                "--env=dgrums-mbp"
            ],
            "stopOnEntry": false,
            "cwd" : "${workspaceRoot}"
        }
    ]