Skip to content

Instantly share code, notes, and snippets.

@Chuckytuh
Last active April 23, 2023 08:54
Show Gist options
  • Save Chuckytuh/5e205935ac076c3f1f422146cfc1a39c to your computer and use it in GitHub Desktop.
Save Chuckytuh/5e205935ac076c3f1f422146cfc1a39c 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