alexa / ask-toolkit-for-vscode

ASK Toolkit is an extension for Visual Studio Code (VSC) that that makes it easier for developers to develop and deploy Alexa Skills.
https://developer.amazon.com/en-US/docs/alexa/ask-toolkit/get-started-with-the-ask-toolkit-for-visual-studio-code.html
Apache License 2.0
108 stars 52 forks source link

Not able to hook local simulator or ask-cli simulator to the local debugger #229

Closed mohammedalnuaimi closed 1 year ago

mohammedalnuaimi commented 1 year ago

Describe the bug I'm not able to debug Alexa Skill from ask-cli using ask dialog against the local setup debugger using "ask-sdk-local-debug" package Worth mentioning I also can't trigger the debugger from the local simulator that comes with the Alexa Skill Toolkit extension I appreciate your assistance

See above To Reproduce

Extension Logs No helpful logs generated

Expected behavior I expect the degugger will be trigger when invoking the skill from the ask dialog or local simulator

Screenshots

Desktop (please complete the following information):

Additional context

tydonelson commented 1 year ago

Hey @mohammedalnuaimi , I assume you've followed the setup steps here and used npm install to install the requisite ask-sdk-local-debug packages into your skill's package.json?

What step exactly is failing? Is the debug server successfully starting, and giving something like the following message?

image

A couple other things to check:

Is your ASK profile setup correctly and selected, like below?

image

Has your skill been deployed before at least once?

mohammedalnuaimi commented 1 year ago

Thanks @tydonelson yes I have followed this setup and even surfed the web to see if I have done something differently but couldn't find the reason, and yes I get the same as what in the above screen shots, there is no bug or errors, it's only the local simulator not triggering the debugger!

tydonelson commented 1 year ago

Hey @mohammedalnuaimi , couple more things you could check -

What region is specified for the skill debug session? Does that match the region where your skill is deployed?

mohammedalnuaimi commented 1 year ago

Thanks @tydonelson I have tried the three regions in the launch.json and getting the same result!

mohammedalnuaimi commented 1 year ago

The issue is the local debugger has to be triggered in a particular way before sending an invocation, so after pressing the debugger to run, I have to press continue couple of times to see further information about the debugger session time and the region, and then sending an utterance through the local simulator, at this point the debugger intercept the call