Skip to main content
3 of 4
edited tags
Haney StaffMod
  • 7.5k
  • 38
  • 54

Add a console to Stack Snippets

Currently, to see console.log() entries from StackSnippets, you need to open your browser console, and make sure it's recording from frames. Things could be a lot simpler if you would add a console to the snippets. Maybe something at the bottom of the snippet.

This could be done by overwriting the default console.log function with a custom one that both writes to the browser console (keep a reference to the original function), and also writes to the snippet's console.

EDIT:
And perhaps also show errors thrown in this console.

Scimonster
  • 14.7k
  • 4
  • 36
  • 67