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.
14 questions
7
votes
0
answers
130
views
Stack Snippets console may drop excess log arguments
Given this one-liner:
console.log('%s', "", "where did my string go?");
Stack Snippets shows an empty message. Every other console implementation appends all arguments not paired with a format ...
4
votes
0
answers
118
views
Stack Snippet console.warn can’t log Error objects (or other non-string, non-array objects passed as the first argument)
This Snippet should log two warnings:
(async () => {
console.warn(new Error("blah"));
})();
console.warn(new Error("blah"));
but it actually logs one error:
Error: {
"message": &...
6
votes
0
answers
180
views
Stack Snippets console message formatting fails at interpreting a doubled percent sign
Both of the lines below, using the console message formatting syntax, are supposed to print "%" to the console twice, and they indeed do in the native developer consoles of Chromium, Firefox ...
2
votes
0
answers
52
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.
...
1
vote
0
answers
36
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 ...
3
votes
2
answers
314
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?
5
votes
0
answers
551
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. ...
7
votes
1
answer
264
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 ...
2
votes
0
answers
564
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 ...
4
votes
1
answer
164
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(...
3
votes
0
answers
55
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 ...
2
votes
1
answer
421
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(...
63
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 ...
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 ...