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.

I think it would be really useful to have a flag you could turn on when debugging that made leveldown write something like this to stdout:

OPEN "test"
PUT "ÿfooÿhello", "world", "String"
GET "ÿfooÿhello", "world", "String"
GET "ÿfooÿweeee", "Key not found in database [ÿfooÿweeee]", "NotFoundError"

I could monkeypatch to implement this today as a third party module but I wanted feedback on where in the stack something like this could go. I imagine that simple if (verbose) checks would get inlined by v8 etc

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:15 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
vweeverscommented, Jul 13, 2018

Wrote https://github.com/vweevers/debugdown in 30 mins. Short of docs, usage is:

var levelup = require('levelup')
var leveldown = require('leveldown')
var debugdown = require('debugdown')

var db = levelup(debugdown(leveldown('db')))

// Use db like you normally would

Here it is in action on the test suite of leveldown with DEBUG=debugdown:

image

0reactions
heapwolfcommented, Aug 12, 2013

this is a perfect user land thing. and could be done with hooks quite easily. new module!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Verbose mode
In computing, Verbose mode is an option available in many computer operating systems and programming languages that provides additional details as to what ......
Read more >
What is Verbose Mode?
A verbose mode is an option available in many computer operating systems, including Microsoft Windows, macOS, and Linux.
Read more >
How to boot your Mac in verbose mode
As its name suggests, the verbose mode is a method of booting up your Mac that, instead of an Apple logo and progress...
Read more >
What Is Verbose Mode and How to Boot Your Mac in ...
Verbose Mode is a booting mode on Macintosh computers that replaces the graphical startup screen with a series of command lines.
Read more >
Verbose
The verbose option specifies that you want to display detailed processing information on your screen. This is the default. When you run the...
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