Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

This section is dedicated to custom JavaScript functions that you can use. Feel free to use these, or share your own ideas! Note that all of these functions are written for the default deployment of Volt, which operates within a sand-boxed environment, therefore some of the syntax looks different then if you were just writing natural, unhindered JavaScript.

If you are writing your own javaScript or looking to investigate/debug the functions provided you can add "debugger;" to any line of the code to create a break-point.  If you view the page with the browser developer tools enabled then the code will stop executing at that point and you can then step through the code one line at a time.

As you can see above, from here I can step one line at a time and I can step into or out of functions.  This is a great tool for helping you figure out what might be broken in a function that you build.  You may also add expressions or variables to the "Watch Expressions" section to show you the value of code statements as you progress through your function(s).

Be sure to remove any break points ("debugger;") in your code before publishing your application for final consumption.

  • No labels