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.

Since 2.3.1/2.3.2 localStorage "debug" is removed every time (wrong Electron check)

See original GitHub issue

After upgrading my debug dependency from 2.3.0 to 2.3.2 nothing works again.

My index.html runs the following code before running any JS library:

<script>
   localStorage.setItem('debug', '*');
</script>

<!-- Load JS libs now -->

It has worked with any previous version of the debug library. Now it doesn’t and nothing it logged.

In fact, once the the JS library (which includes the debug dependency) is loaded, localStorage.getItem('debug') returns false.

This is critical.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
TooTallNatecommented, Nov 19, 2016

2.3.3 published

3reactions
jordalgocommented, Nov 15, 2016

Any word on getting this fix into a new version ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues - GitHub
Since 2.3.1/2.3.2 localStorage "debug" is removed every time (wrong ... If Electron checks are needed do it, but don't break other valid ...
Read more >
Local storage data getting deleted… | Apple Developer Forums
But the stored key itself is deleted once we kill or destroyed the app from background task in iOS 13 device (iPad)and check...
Read more >
Logging and debugging - Socket.IO
The basic idea is that each module used by Socket.IO provides different debugging ... JS) or the localStorage.debug property (Browsers).
Read more >
View and edit local storage - Chrome Developers
This guide shows you how to use Chrome DevTools to view, edit, and delete localStorage key-value pairs. # View localStorage keys and ...
Read more >
Where an electron application's sessionStorage and ...
It's stored in the AppData folder, which you can find by looking at the value of require('electron').app.getPath('userData') .
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