title: How to debug cinnamon applet?
body: <p>I wish to write a cinnamon applet.  These are based in JavaScript.  The code I wish to write changes services (turning them on and off, similar to <a href="https://bitbucket.org/infiniteshroom/cinnamon-webdevelopermenuapplet/src/e254b5bbd25b57864d9e04efb9ead9a1599dd2e1/web-developer-menu%40infiniteshroom/applet.js?at=master">WebDeveloperMenuApplet</a>).  I don't expect the debugging for the service start/stop/restart to work, but I was wondering how I would debug the menu items and the calls to the functions.  I also wish to write a configuration applet that would involve some more complex coding or calls to a external server.  </p>
  
  <p>Is it possible to load this into a web browser or is there a better way to debugging this?  I don't know where the imports command is pulling so I am not sure how to duplicate this in a web browser.  </p>
  
  <p>Currently using IntelliJ IDEA as IDE, but quite will to switch to anything for this project.  </p>