question

Barry Burd avatar image
Barry Burd asked

Help with Debugging

Is there a way to see the JSON request and response when I talk to my Echo? If I test my skill with a particular JSON request, it works. But if I talk to my Echo, sometimes it doesn't work. I'd like to find out what Alexa thinks she's hearing.
alexa skills kitdebugging
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

jjaquinta avatar image
jjaquinta answered
There's no instrumentation on the Echo or Alexa to see what's going on. (Even the Cert team doesn't appear to have access to it.) All you can do is instrument your skill to see what JSON it is sent. So if your problem is understanding what you are getting that will help. If it's just not getting there at all, it won't help.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Barry Burd avatar image
Barry Burd answered
I hear that you've published a Java emulator for Echo and that it's available on Reddit. Can you tell me the exact link? Thanks.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

jjaquinta avatar image
jjaquinta answered
EchoSim is available on GitHub: https://github.com/jjaquinta/EchoSim It simulates the Echo hardware and makes calls, as near as possible, to the Alexa service into your skill. I have a book with several chapters of testing hints: http://www.amazon.com/How-Program-Amazon-Echo-Development-ebook/dp/B011J6AP26 If you just want to do basics, the doc on GitHub should be enough. You can save yourself the $0.99. If you are testing a Lambda function, drop me a line at jo@111george.com. The next edition of the book has some tips on testing a Lambda function using EchoSim. I'll send you a draft copy.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.