Skip to content

Instantly share code, notes, and snippets.

@aweber1
Created March 19, 2019 22:30
Show Gist options
  • Save aweber1/9ed05f788c0dfab59bb1e3fe81f7b573 to your computer and use it in GitHub Desktop.
Save aweber1/9ed05f788c0dfab59bb1e3fe81f7b573 to your computer and use it in GitHub Desktop.
Debugging JSS CLI commands

In vscode, open the Debug panel, and create a new configuration. This should create .vscode folder and a default launch.json file.

In the launch.json file, use something this as a starting point:

{
  // 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",
      "program": "${workspaceFolder}/node_modules/@sitecore-jss/sitecore-jss-cli/dist/bin/jss.js",
      "args": ["manifest", "-c"]
    }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment