What are some tips/tricks for debugging Arcade scripts in VS Code/Node.js?
(assuming that the Arcade script is fairly vanilla -- as in, it doesn't use many Arcade-specific functions that need to be stripped-out)
For example, Arcade uses console(), whereas VS Code/Node.js uses console.log().
Any other ideas?
(I'm a novice, so it's possible the console.log() thing is wonky...I'm just trying to learn, and not get too frustrated while I'm at it 🙂
Related: Idea: Arcade Extension for Visual Studio Code
Personally, I almost always keep one of these two things up in a tab:
As I work on a script in VSCode, I routinely copy it into one of these test spaces to get feedback. It's not perfect, but it works well enough.
By the way, the keyboard shortcut for auto-formatting code in VS Code is: Shift + Alt + F.