Advice on Troubleshooting

What are ways to map a long function to find common errors, like not having end for an if statement, or not mapping nested if statements, whlie loops, etc?

VS Code Julia extension comes with a linter. This together with the Julia Formatter extension should help such troubleshooting.

That’s a good idea. I have VS code and the add on installed. Whenever I try to run the debugger it asks yo set up a JSON.