Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmfsotelo/45171fc2e04216d949b5d531d3aecca4 to your computer and use it in GitHub Desktop.
Save cmfsotelo/45171fc2e04216d949b5d531d3aecca4 to your computer and use it in GitHub Desktop.
This launch.json configuration is helpful for cordova hook development. It allows to launch cordova cli with VSCode debugger attached so we can place breakpoints on our hook scripts.
{
// Use IntelliSense to learn about possible Node.js debug 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": "Install Plugin",
// Path to cordova
"program": "~/.npm-packages/lib/node_modules/cordova/bin/cordova",
// Path to a cordova project onto where we're going to install this plugin
"cwd": "~/Development/dummycordovaproject",
"stopOnEntry": false,
"args": [
"plugin",
"add",
"${workspaceRoot}"
]
},
{
"type": "node",
"request": "attach",
"name": "Attach to Process",
"port": 5858
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment