When writing Arcade scripts, I think it would be helpful to do testing in an IDE beforehand, if the script doesn't use any Arcade-specific functions (or if it does, temporarily remove/fake out those parts).
For example, define a polyline array manually...
var paths = [[[0,5,null],[10,10, null],[30,0, null],[50,10, null],[60,10, null]]]
...loop through the vertices, do some stuff, and output results as text.
Solved! Go to Solution.
With node.js installed, in VS Code either open the folder containing your .js file (File -> Open Folder...) or open your .js file directly (File -> Open File...)
The advantage of opening the folder rather than the file is that you save your run config and don't have to set it up every time.
Not exactly what you mean but may be helpful if you've not come across it Playground | ArcGIS Arcade | ArcGIS Developer
With node.js installed, in VS Code either open the folder containing your .js file (File -> Open Folder...) or open your .js file directly (File -> Open File...)
The advantage of opening the folder rather than the file is that you save your run config and don't have to set it up every time.
Yes! That worked!
I used the folder option you mentioned.
Thanks!
Related: Idea: Arcade Extension for Visual Studio Code