Trouble with the code? I'm sure many here already know, but to me this was news: Framer has a debugger.
Just write "debugger" anywhere in you code, and the code execution will stop there – if you have the debugger window open. (Open it by clicking “Inspect” in the lower left corner of Framer Code window, or shortcut Cmd-Alt-i.)
The tools I find most useful are:
* Hovering over a variable you want to know the value of.
* The details sidebar – a small icon in the top right corner. This shows the current values of all variables.
* Being able to execute the code step by step – controls in the top left corner.