ClimbsRocks / console.label

an idea to easily label your console.logs for development
0 stars 0 forks source link

advanced functionality: print the enclosing scope/function #2

Open ClimbsRocks opened 8 years ago

ClimbsRocks commented 8 years ago

"X: 5, inside exampleFunc"

Sure, you can get this from the line number, but then you need to cross-reference that line number against your actual code. this handles it directly.

this would be an advanced an configurable option.