my dog learned polymorphism*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 19654
    
  18

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
 
Similar Threads
basic OO
Reflection
Local Variable
Exception while invoking Web Service in WAS 5
StringTokenizer Class