# how best to debug a data join?

**URL:** <https://talk.observablehq.com/t/how-best-to-debug-a-data-join/10206>\
**Category:** Help\
**Created:** [January 24, 2025, 3:14pm UTC](https://talk.observablehq.com/t/how-best-to-debug-a-data-join/10206 "2025-01-24T15:14:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stuvjordan-uroc](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/stuvjordan-uroc/32/6808_2.png) [@stuvjordan-uroc](https://talk.observablehq.com/u/stuvjordan-uroc)\
**Post date:** [January 24, 2025, 3:14pm UTC](https://talk.observablehq.com/t/how-best-to-debug-a-data-join/10206/1 "2025-01-24T15:14:20Z")

</div>

In a cell of an observable notebook, I’m trying to join some data to some elements using D3. I’m making a mistake somewhere in my code, and trying to debug to figure out what’s going wrong.

I have a suspicion that the problem might be that I’m not successfully joining the data to the elements I’ve selected. So I’d like to log info about those elements to the console, in a way that will show whether the data I’m trying to join is in fact joined.

How do I do that?

I realize this might seem like a D3 question, rather than an Observable question. But I think that the fact that I’m trying to log to the console from an Observable notebook means that the scope of this goes beyond D3.

Thanks!

---

<div class="post-metadata">

**Author:** ![tomlarkworthy](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/tomlarkworthy/32/5940_2.png) [@tomlarkworthy](https://talk.observablehq.com/u/tomlarkworthy)\
**Post date:** [January 24, 2025, 8:47pm UTC](https://talk.observablehq.com/t/how-best-to-debug-a-data-join/10206/2 "2025-01-24T20:47:36Z")

</div>

the nice thing about Observable notebooks is you can link directly to the problematic notebook, ideally after you have made a fork and golfed it down to the minimum
