# Advice on Troubleshooting

**URL:** <https://discourse.julialang.org/t/advice-on-troubleshooting/69394>\
**Category:** General Usage\
**Tags:** question\
**Created:** [October 7, 2021, 8:38pm UTC](https://discourse.julialang.org/t/advice-on-troubleshooting/69394 "2021-10-07T20:38:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![brett\_knoss](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brett_knoss/32/13050_2.png) [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Post date:** [October 7, 2021, 8:38pm UTC](https://discourse.julialang.org/t/advice-on-troubleshooting/69394/1 "2021-10-07T20:38:43Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [October 8, 2021, 6:53am UTC](https://discourse.julialang.org/t/advice-on-troubleshooting/69394/2 "2021-10-08T06:53:05Z")

</div>

VS Code Julia extension comes with a [linter](https://discourse.julialang.org/t/is-there-an-ide-that-can-statically-determine-undefined-variables-in-function-and-auto-complete-structs/66941/9). This together with the _Julia Formatter_ extension should help such troubleshooting.

---

<div class="post-metadata">

**Author:** ![brett\_knoss](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brett_knoss/32/13050_2.png) [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Post date:** [October 8, 2021, 5:54pm UTC](https://discourse.julialang.org/t/advice-on-troubleshooting/69394/3 "2021-10-08T17:54:24Z")

</div>

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.
