# Debugging a function in observable

**URL:** <https://talk.observablehq.com/t/debugging-a-function-in-observable/2246>\
**Category:** Help\
**Created:** [August 9, 2019, 3:01pm UTC](https://talk.observablehq.com/t/debugging-a-function-in-observable/2246 "2019-08-09T15:01:41Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![bgchen](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/bgchen/32/784_2.png) [@bgchen](https://talk.observablehq.com/u/bgchen)\
**Post date:** [August 9, 2019, 9:14pm UTC](https://talk.observablehq.com/t/debugging-a-function-in-observable/2246/4 "2019-08-09T21:14:43Z")

</div>

Glad my post was helpful!

> [@EE2dev](#):
>
> WIth observable I don’t know how to find my source code in the browsers dev tool (so I can’t set a breakpoint)

You can use the [`debugger` statement](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/debugger) to set a breakpoint using code. I actually learned about this from [another post in this forum](https://talk.observablehq.com/t/d3-csv-of-https-file-csv-returns-property-undefined-within-script-but-ok-if-defined-in-separate-cell/1610/7)!

---

_[View the full topic](https://talk.observablehq.com/t/debugging-a-function-in-observable/2246)._
