Created
February 5, 2021 14:55
-
-
Save lucasltv/1dcda3c1d8cdb7af2bcb18b0f2adea3b to your computer and use it in GitHub Desktop.
VSCODE config file for local debugger Alexa skill
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Debug Alexa Skill (Node.js)", | |
"type": "node", | |
"request": "launch", | |
"program": "${workspaceFolder}/node_modules/ask-sdk-local-debug/dist/LocalDebuggerInvoker.js", | |
"preLaunchTask": "tsc: watch - tsconfig.json", | |
"args": [ | |
"--accessToken", | |
"<YOUR ACCESS TOKEN. RUN: ask util generate-lwa-tokens --scopes alexa::ask:skills:debug>", | |
"--skillId", | |
"<YOUR SKILL ID>", | |
"--skillEntryFile", | |
"${workspaceFolder}/.build/src/index.js", | |
"--handlerName", | |
"handler", | |
"--region", | |
"NA" | |
], | |
"cwd": "${workspaceFolder}" | |
}, | |
{ | |
"type": "node", | |
"name": "Serverless debugger handler intent", | |
"request": "launch", | |
"program": "${workspaceFolder}/node_modules/.bin/sls", | |
"args": ["invoke", "local", "-f", "alexa", "--path", "src/mock/Intents/Launch/handlerInput.json"], | |
"preLaunchTask": "tsc: build - tsconfig.json", | |
"outFiles": ["${workspaceFolder}/.build/**/*.js"] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment