Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-debug-dev] Exception in log without stack trace

If all you want to do is halt when the exception is thrown, then just set a Java exception breakpoint via the run menu on caught/uncaught instances of the exception.


Chris

> -----Original Message-----
> From: cdt-debug-dev-admin@xxxxxxxxxxx 
> [mailto:cdt-debug-dev-admin@xxxxxxxxxxx] On Behalf Of Øyvind Harboe
> Sent: Wednesday, December 01, 2004 6:23 AM
> To: cdt-debug-dev@xxxxxxxxxxx
> Subject: [cdt-debug-dev] Exception in log without stack trace
> 
> 
> Sometimes I find these in the .log file:
> 
> "An exception stack trace could not be found."
> 
> Any hints on how to most efficiently debug this?
> 
> Just a fleeting idea: perhaps it could be useful to add a 
> breakpoint site in eclipse.cdt.core...
> 
> static public void silenceException(Throwable e)
> {
> 	int x=0; // breakpoint site
> }
> 
> 
> To silence an exception, the procedure would be:
> 
> catch (Throwable x)
> {
> 	org.eclipse.foo.bar.silenceException(x);
> }
> 
> -- 
> Øyvind Harboe
> http://www.zylin.com
> 
> 
> _______________________________________________
> cdt-debug-dev mailing list
> cdt-debug-dev@xxxxxxxxxxx 
> http://dev.eclipse.org/mailman/listinfo/cdt-debug-dev
> 


Back to the top