Forked from Chuckytuh/VSCode debug install cordova plugin
Created
March 7, 2019 17:22
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// 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