# Start debugger after an error occurs

**URL:** <https://discourse.julialang.org/t/start-debugger-after-an-error-occurs/108663>\
**Category:** General Usage\
**Tags:** debugging\
**Created:** [January 11, 2024, 7:32am UTC](https://discourse.julialang.org/t/start-debugger-after-an-error-occurs/108663 "2024-01-11T07:32:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oto\_Brzobohaty](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oto_brzobohaty/32/10370_2.png) [@Oto\_Brzobohaty](https://discourse.julialang.org/u/Oto_Brzobohaty)\
**Post date:** [January 11, 2024, 7:32am UTC](https://discourse.julialang.org/t/start-debugger-after-an-error-occurs/108663/1 "2024-01-11T07:32:02Z")

</div>

I am running for cycle where I load text data files and post process them. One of the files is corrupted and I got an error.

Is there possibility to run the julia program in vscode and start debbuging after the error. St like matlabs _dbstop if error_.

---

<div class="post-metadata">

**Author:** ![joa-quim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joa-quim/32/227_2.png) [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Post date:** [January 11, 2024, 2:26pm UTC](https://discourse.julialang.org/t/start-debugger-after-an-error-occurs/108663/2 "2024-01-11T14:26:47Z")

</div>

Yes. Run your code trough the VSC debugger interface with `@run your-fun-call()` and it will stop at the error site.

---

<div class="post-metadata">

**Author:** ![bertulli](https://avatars.discourse-cdn.com/v4/letter/b/ecc23a/32.png) [@bertulli](https://discourse.julialang.org/u/bertulli)\
**Post date:** [July 10, 2025, 5:33pm UTC](https://discourse.julialang.org/t/start-debugger-after-an-error-occurs/108663/3 "2025-07-10T17:33:37Z")

</div>

Recent versions of Debugger.jl can now enable `bp on error` and `bp on throw`, if that’s what you mean
