Skip to main content
241 votes
11 answers
143k views

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 ...
grasaved's user avatar
  • 2,475
142 votes
7 answers
169k views

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 ...
victor hugo's user avatar
  • 35.9k
515 votes
33 answers
1.1m views

Like most Python developers, I typically keep a console window open with the Python interpreter running to test commands, dir() stuff, help() stuff, etc. Like any console, after a while the visible ...
Soviut's user avatar
  • 92.3k
102 votes
9 answers
65k views

Every time console.log is executed, a line saying undefined is appended to the output log. It happens in both Firefox and Chrome on Windows and Linux.
N. Chamaa's user avatar
  • 1,587
1145 votes
28 answers
1.3m views

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 ...
JSmyth's user avatar
  • 12.2k
187 votes
14 answers
927k views

Can any body please tell me what code is used for clear the screen in Java? For example, in C++: system("CLS"); What code is used in Java to clear the screen?
sadia's user avatar
  • 2,043
221 votes
36 answers
629k views

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 ...
Adam P's user avatar
  • 4,723
170 votes
12 answers
114k views

In Safari with no add-ons (and actually most other browsers), 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 ...
user avatar
537 votes
25 answers
588k views

I've used Visual Studio for years, but this is the first time I've done any 'Console Application' development. When I run my application the console window pops up, the program output appears and then ...
Martin's user avatar
  • 40.5k
190 votes
15 answers
415k views

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 ...
Ali Nadalizadeh's user avatar
456 votes
15 answers
392k views

I need to write JUnit tests for an old application that's poorly designed and is writing a lot of error messages to standard output. When the getResponse(String request) method behaves correctly it ...
Mike Minicki's user avatar
  • 8,546
158 votes
8 answers
168k views

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 ...
Gripsoft's user avatar
  • 2,620
583 votes
31 answers
581k views

I wrote a simple console app to upload and download files from an FTP server using the ftplib. I would like the app to show some visualization of its download/upload progress for the user; each time ...
bobber205's user avatar
  • 13.4k
62 votes
7 answers
26k views

My System.out.println() and System.err.println() calls aren't being printed to the console in the order I make them. public static void main(String[] args) { for (int i = 0; i < 5; i++) { ...
Nick Heiner's user avatar
142 votes
33 answers
75k views

I have a console app in which I want to give the user x seconds to respond to the prompt. If no input is made after a certain period of time, program logic should continue. We assume a timeout means ...
Larsenal's user avatar
  • 51.5k

15 30 50 per page
1
2 3 4 5
127