Skip to main content

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.

7 votes
0 answers
130 views

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 ...
user3840170's user avatar
  • 4,787
4 votes
0 answers
118 views

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": &...
user3840170's user avatar
  • 4,787
6 votes
0 answers
180 views

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 ...
user3840170's user avatar
  • 4,787
2 votes
0 answers
52 views

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
1 vote
0 answers
36 views

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
3 votes
2 answers
314 views

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
  • 337
5 votes
0 answers
551 views

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
7 votes
1 answer
264 views

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
2 votes
0 answers
564 views

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
4 votes
1 answer
164 views

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
3 votes
0 answers
55 views

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
421 views

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
63 votes
12 answers
1k views

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
  • 8,269
204 votes
6 answers
5k views

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.8k