File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Stack trace with variables and method arguments Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Stack trace with variables and method arguments" Watch "Stack trace with variables and method arguments" New topic
Author

Stack trace with variables and method arguments

Peter Kovac
Ranch Hand

Joined: Aug 08, 2010
Posts: 42
Hi,

Was wondering if there is a way to create a stack trace that contains variables and method arguments for each frame - kinda like a debugger.

I just need something that can show these info - for example when an exception is thrown.

As of now I have two possible solutions: aspects but they need the proper framework and the Java Debug Interface which seems to be slow and complicated.

Are there any ways?

Thanks,
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19696
    
  20

Aspects would be the way I'd choose. You don't need to worry about any framework; AspectJ is small and easy to integrate.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Stack trace with variables and method arguments