question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Breadcrumbs stringify object

See original GitHub issue

It might make sense to improve the rendering of objects passed as breadcrumbs. Currently they become [object Object] which is not very helpful.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:13
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

5reactions
araboldcommented, Aug 13, 2018

Wait, what?! I’m confused as Sentry is logging my console logs automatically. But then it logs everything as useless [object Object] and the official statement is that this is intended because that’s not what breadcrumbs were designed for? o_O

But for everybody else who ends up in this thread wondering how to fix this, there’s a simple solution: Set the breadcrumbCallback as described in the JavaScript Configuration. This should allow you to stringify your log the way you want.

5reactions
benvinegarcommented, Jun 25, 2016

Rendering objects as expandable tree structures would be nice too!

Breadcrumbs are intentionally designed to be lightweight “hints” … we want to avoid just straight-up rendering big trees of embedded data. There is a payload data limit.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Recursive function to build breadcrumbs from json menu object
So I've been struggling to wrap my head around this recursive function and get the right results. const _ = require('lodash'); let ...
Read more >
Implement Structured Data Breadcrumbs Using GTM
How to implement structured data Breadcrumbs lists using Google Tag Manager.
Read more >
Building Dynamic Breadcrumbs in NextJS - DEV Community ‍ ‍
Breadcrumbs are a website navigation tool that allows users to see their current page's "stack" of how it is nested under any parent...
Read more >
Breadcrumbs with each part linked | Velo by Wix
I contacted the velo team before, I want to add breadcrumbs to a ... item could be different: either stringify the object with...
Read more >
_json - Introduction
stable: boolean : If set to true, equal objects will be stringified to the same string. Object keys are sorted. space: number |...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found