All Questions

84
votes
6answers
14162 views

Is Chrome's JavaScript console lazy about evaluating arrays?

I'll start with the code: var s = ["hi"]; console.log(s); s[0] = "bye"; console.log(s); Simple, right? In response to this, Firebug says: ["hi"] ["bye"] Wonderful, but Chrome's JavaScript conso...
129
votes
4answers
50615 views

Where to read console messages from background.js in a Chrome extension?

I just started out with Google Chrome extensions and I can't seem to log to console from my background js. When an error occurs (because of a syntax error, for example), I can't find any error message...
80
votes
5answers
131915 views

How to read a single char from the console in Java (as the user types it)?

Is there an easy way to read a single char from the console as the user is typing it in Java? Is it possible? I've tried with these methods but they all wait for the user to press enter key: char tmp...
749
votes
21answers
804898 views

How can I get the application's path in a .NET console application?

How do I find the application's path in a console application? In Windows Forms, I can use Application.StartupPath to find the current path, but this doesn't seem to be available in a console applica...
335
votes
15answers
293837 views

Preventing console window from closing on Visual Studio C/C++ Console application

This is a probably an embarasing question as no doubt the answer is blindingly obvious. I've used Visual Studio for years, but this is the first time I've done any 'Console Application' development. ...
146
votes
35answers
337976 views

How to stop C++ console application from exiting immediately?

Lately, I've been trying to learn C++ from this website. Unfortunately whenever I try to run one of the code samples, I see that program open for about a half second and then immediately close. Is the...
138
votes
11answers
93969 views

How can I change the default behavior of console.log in Safari?

In Safari with no add-ons, console.log will show the object at the last state of execution, not at the state when console.log was called. I have to clone the object just to output it via console.log ...
248
votes
17answers
183103 views

What happened to console.log in IE8?

According to this post it was in the beta, but it's not in the release?
98
votes
10answers
173951 views

Changing default encoding of Python?

I have many "can't encode" and "can't decode" problems with Python when I run my applications from the console. But in the Eclipse PyDev IDE, the default character encoding is set to UTF-8, and I'm fi...
101
votes
7answers
88243 views

Capturing console output from a .NET application (C#)

How do I invoke a console application from my .NET application and capture all the output generated in the console? (Remember, I don't want to save the information first in a file and then relist as...

Previous Next