For those who may not wish to install curl, here is a web based debugger for Particle devices, written and hosted by my friend and co-developer Jim Schrempp. It is extremely easy and intuitive to use and you do not have to copy out device id’s and access tokens, as it uses the Spark.js library:
The web page provides a “login to Spark” button. Click on it and you get the standard Particle login panel. Log in just as you would to the Particle web, and you then get a pick list of all of the Particle devices registered to your account. Simply select the device that you want to test, and you will then see a page with all of your device’s cloud functions and cloud variables. To retrieve and display a cloud variable, click on its button. To call a function, enter the argument (as a string), if any, and click the button. The returned value (if any) will also be displayed. Like I said, easy to use and completely intuitive.
Jim wrote this to help us debug a rather complex Particle project called SIS (see: https://github.com/TeamPracticalProjects/SISProject, if you are interested). However, it is completely general in nature and will work with any Particle device that exposes variables and/or functions to the Particle cloud.