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.

DEBUG_DEPTH not working

See original GitHub issue

DEBUG_DEPTH env var has no effect. I tried values of 10, 100, null. No matter what I always get the following display:

2020-02-08T22:17:01.423Z SCOPE STRING [ { email: 'xxx@yyy.com', vars: [ [Object] ] } ]

My invocation:

debug('STRING', targetObj);

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
Qix-commented, Jul 8, 2020

I should have noted it reproduces only when deep object is the second argument to the debug function, e.g.

Yeah that’s much less simple to fix; there are a few bugs surrounding this. v5 is going to be a rewrite for the most part, so a lot of this will get addressed then.

Glad to know it works now (mostly); I’ll commit it in sometime soon. Thank you very much for testing @anishkny 😃

2reactions
calvintwrcommented, Sep 2, 2022

@Qix- I have created a PR https://github.com/debug-js/debug/pull/911 for this fix.

It comes with tests as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tons of error messages and sudden performance drops after ...
... uses unknown shader "DebugDepth" Error: Material "___debugdepth_4" ... is not a texture value (material: panoramabackbufferscreenspace) ...
Read more >
Garry's Mod - help me read this script from console
hi i had some problems with my resistence typed npcs where they won't follow me and ... Error: Material "___debugdepth_3" uses unknown shader...
Read more >
CSGO broken on ubuntu 20.04 : r/linux_gaming - Reddit
Console log: Parent cvar in client.dll not allowed (sv_bumpmine_detonate_delay) Parent cvar in ... CSGO not working on linux anymore.
Read more >
[Steam] [CS:GO] Error Messages / Newbie Corner / Arch Linux ...
Parent cvar in client.dll not allowed (weapon_max_before_cleanup) Parent ... unknown shader "DebugDepth" Error: Material "___debugdepth_4" ...
Read more >
[Solved] Native Steam Portal crashing due to unknown shader
One year ago, the native game was still working perfectly. ... Error: Material "___debugdepth_4" uses unknown shader "DebugDepth"
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