printstacktrace

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

printStackTrace in java?

I am go through a socket program. In that printStackTrace is caught by the catch block. Actully what it is? catch(IOException ioe) { ioe.printStackTrace(); } I am unaware of it. For what they are used? ...

How to print a stack trace in NodeJS?

Does anyone know how to print a stack trace in nodejs? ...

Catching some exceptions but ignoring others - why doesn't this work?

I have something similar to this. void func() { try { //socket disconnects in middle of ..parsing packet.. } catch(Exception ex) { if(!ex.getMessage().toString().equals("timeout") || !ex.getMessage().toString().equals("Connection reset")) { debug("Exception (run): " + ex.getMessage()); ex.printStackTrace(); } } ...

How to print exception stack trace of Objective-C exceptions with GNU runtime and without GNUStep?

I have an Objective-C app build on Linux with GCC 4.3 using no specific framework (only GNU-runtime). I am using Objective-C exceptions (via the '-fobjc-exceptions' compiler flag). Now I want to print the stack trace of such an exception when I caught some. Or what would make me even happier: put the trace in a string or some kind of st...

Is it a bad idea to use printStackTrace() in Android Exceptions?

Is it a bad idea to use printStackTrace() in Android Exceptions like this? } catch (Exception e) { e.printStackTrace(); } ...

How to know what action is triggering an event?

Hi, How do I know what action is triggering a particular event? org.w3c.dom.events.EventListener refreshAnnotationsListener = new org.w3c.dom.events.EventListener() { @Override public void handleEvent(org.w3c.dom.events.Event event) { // how do I know the action which triggered this event? } }; I guess there is a ...