Adam Lerman
Adam Lerman

Reputation: 3409

Eclipse Stacktrace System.err problem

All of a sudden my printStackTrace's stopped printing anything. When I give it a different output stream to print to it works (like e.printStackTrace(System.out)) but obviously I would like to get it figured out.

Upvotes: 0

Views: 1602

Answers (3)

KevinS
KevinS

Reputation: 7875

This is probably not the problem but the Console view in Eclipse has some toggle buttons to show/hide the console when output from either stdout or stderr changes.

Is it possible that you've clicked the stderr button accidentally?

Upvotes: 1

John
John

Reputation: 233

Check to see if some library you are using is not redirecting the standard err with the System.setErr(PrintStream) method.

Upvotes: 1

Jared
Jared

Reputation: 26149

In your launch profile, on the common tab, check to make sure "Allocate console" is checked in the "Standard Input and Output" section.

Upvotes: 0

Related Questions