# Open debugger on error - Dash

**URL:** <https://community.plotly.com/t/open-debugger-on-error-dash/26176>\
**Category:** Dash Python\
**Created:** [July 22, 2019, 12:48am UTC](https://community.plotly.com/t/open-debugger-on-error-dash/26176 "2019-07-22T00:48:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![puzzler10](https://avatars.discourse-cdn.com/v4/letter/p/db5fbb/32.png) [@puzzler10](https://community.plotly.com/u/puzzler10)\
**Post date:** [July 22, 2019, 12:48am UTC](https://community.plotly.com/t/open-debugger-on-error-dash/26176/1 "2019-07-22T00:48:25Z")

</div>

Probably an easy one.

It’s great when I get an error when using Dash. I can see callbacks and a lovely graph if I like:

 ![image](https://us1.discourse-cdn.com/flex024/uploads/plot/original/2X/f/fa3ba841b6196aba1ef9c22ec89dca4209e011fe.png)

But if I wanted to open a debugger at the point the error occurred (like ipdb), how could I do this?

---

<div class="post-metadata">

**Author:** ![lahashh](https://avatars.discourse-cdn.com/v4/letter/l/3be4f8/32.png) [@lahashh](https://community.plotly.com/u/lahashh)\
**Post date:** [July 22, 2019, 8:21pm UTC](https://community.plotly.com/t/open-debugger-on-error-dash/26176/2 "2019-07-22T20:21:16Z")

</div>

if you running from a terminal ipdb will open wherever the breakpoint() statement is set only it will be shown on the terminal not the browser

---

<div class="post-metadata">

**Author:** ![puzzler10](https://avatars.discourse-cdn.com/v4/letter/p/db5fbb/32.png) [@puzzler10](https://community.plotly.com/u/puzzler10)\
**Post date:** [July 22, 2019, 10:36pm UTC](https://community.plotly.com/t/open-debugger-on-error-dash/26176/3 "2019-07-22T22:36:09Z")

</div>

Breakpoints certainly have their uses, but I was hoping to find a way for the debugger to open automatically whenever an error occurred. I was thinking like the %debug statement you can use in Jupyter notebooks.

---

<div class="post-metadata">

**Author:** ![puzzler10](https://avatars.discourse-cdn.com/v4/letter/p/db5fbb/32.png) [@puzzler10](https://community.plotly.com/u/puzzler10)\
**Post date:** [July 26, 2019, 5:04am UTC](https://community.plotly.com/t/open-debugger-on-error-dash/26176/4 "2019-07-26T05:04:36Z")

</div>

Anyone know anything about this? I know Dash uses the Werkzeug debugger, which has an option for this (see [https://werkzeug.palletsprojects.com/en/0.15.x/debug/](https://werkzeug.palletsprojects.com/en/0.15.x/debug/)). Makes me think there’s an easy way currently to do it. It’d also be super useful!

---

<div class="post-metadata">

**Author:** ![alexcjohnson](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/alexcjohnson/32/614_2.png) [@alexcjohnson](https://community.plotly.com/u/alexcjohnson)\
**Post date:** [August 1, 2019, 8:20pm UTC](https://community.plotly.com/t/open-debugger-on-error-dash/26176/5 "2019-08-01T20:20:59Z")

</div>

We have one proposal about how to do this here: [https://github.com/plotly/dash/issues/698](https://github.com/plotly/dash/issues/698)  
I haven’t looked at what it would take to connect to the Werkzeug debugger, but that could be an interesting part of this. It’s important to note though, we’ll be looking for a solution that can be replicated in R as well as Python.

---

<div class="post-metadata">

**Author:** ![puzzler10](https://avatars.discourse-cdn.com/v4/letter/p/db5fbb/32.png) [@puzzler10](https://community.plotly.com/u/puzzler10)\
**Post date:** [August 4, 2019, 1:02am UTC](https://community.plotly.com/t/open-debugger-on-error-dash/26176/6 "2019-08-04T01:02:41Z")

</div>

Great. I’ll be awaiting that feature eagerly then!
