Skip to content

Instantly share code, notes, and snippets.

@danpetitt
Created December 11, 2019 15:24
Show Gist options
  • Save danpetitt/d13c1d54eed9d7b06273e1ae7aec786f to your computer and use it in GitHub Desktop.
Save danpetitt/d13c1d54eed9d7b06273e1ae7aec786f to your computer and use it in GitHub Desktop.
Debug Yeoman Generator using VSCode 2019
{
// 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
// To find location of yo folder type:
// 'which yo'
// and then replace the end segments '/npm/yo' with '/npm/node_modules/yo/lib/cli.js'
"version": "0.2.0",
"configurations": [
{
"name": "Debug yo",
"type": "node",
"request": "launch",
"program": "c:/Users/<username>/AppData/Roaming/npm/node_modules/yo/lib/cli.js",
"args": [
"<yo-name>",
"--skip-install"
],
"console": "externalTerminal",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true,
"stopOnEntry": false
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment