Skip to content

Instantly share code, notes, and snippets.

@lucasltv
Created February 5, 2021 14:55
Show Gist options
  • Save lucasltv/1dcda3c1d8cdb7af2bcb18b0f2adea3b to your computer and use it in GitHub Desktop.
Save lucasltv/1dcda3c1d8cdb7af2bcb18b0f2adea3b to your computer and use it in GitHub Desktop.
VSCODE config file for local debugger Alexa skill
{
"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