Questions tagged [stack-snippets-console]

The virtual console displays `console.log()` entries inside a stack snippet. Use this tag for bug reports, feature requests, and discussions explicitly relevant to that console.

Filter by
Sorted by
Tagged with
204 votes
6 answers
5k views

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 ...
Scimonster's user avatar
  • 14.7k
62 votes
12 answers
1k views

Stack Snippets Upgrade: Virtual Console

It's been a long time since we worked on Stack Snippets. I'm sorry. It's mostly because I created it, then I got promoted to management, and now I don't code much anymore and nobody else has time to ...
Haney's user avatar
  • 7,503
7 votes
1 answer
243 views

Why is there a script error in all Stack Snippets?

I am not sure whether this has been asked before or not, or if anyone else has this problem. I get this "script error" everytime I execute any script in the code snippet tool of Stack Overflow. I have ...
Anupam's user avatar
  • 219
4 votes
1 answer
136 views

Define custom console logging for all Node objects

Currently, the virtual console defines a custom logging for HTMLElement objects, e.g. console.log(document.body); However, not all Element objects are HTMLElement, e.g. console.log(...
Oriol's user avatar
  • 1,423
4 votes
0 answers
539 views

Stack Overflow code snippet tool bug: `console.log` incorrectly reports missing array slot as undefined

The Stack Overflow code snippet tool produces an ambiguous and, depending on your definitions, incorrect output when using the JavaScript console.log command with an array that has missing slots, i.e. ...
Andrew Willems's user avatar
3 votes
2 answers
296 views

"Show console" in "JavaScript/HTML/CSS snippet"

The advanced options in "JavaScript/HTML/CSS snippet" all have help icons except "Show console", so: Could you add a help icon there too? Can you describe here exactly what it does?
LWC's user avatar
  • 327
3 votes
0 answers
50 views

The console should not display inherited properties

Currently, when you log an object to the virtual console, it shows all enumerable properties, both own and inherited. I think the inherited ones should be filtered out. Otherwise, the result can be ...
Oriol's user avatar
  • 1,423
2 votes
1 answer
402 views

Stop iterating objects using __proto__

http://stacksnippets.net/scripts/snippet-javascript-console.js uses this function function getProps(obj) { var props = []; do { for (var prop in obj) { if (props.indexOf(...
Oriol's user avatar
  • 1,423
2 votes
0 answers
45 views

Console on snippet going behind contents

I was googling for a code and I reached this Stack Overflow page. Owl Carousel on change not working I tried running the code in answer and it will log something in console in every slide change. ...
Optimus Prime's user avatar
2 votes
0 answers
521 views

Snippet console.log() return different value than browser console

Not sure why the console.log() in my snippet return different value of the browser developer console : You could see that it return an empty array [] instead of filled one like console below. The ...
Zakaria Acharki's user avatar
1 vote
0 answers
31 views

Console destroy the Output screen

When something is logged in console, the scroll bar is not adjust automatically and hide the bottom of the Output screen. In the above image, I added a click Event Listener to the button to console ...
Optimus Prime's user avatar