File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes How to obtain name of current method and sourcecode linenumber ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "How to obtain name of current method and sourcecode linenumber ??" Watch "How to obtain name of current method and sourcecode linenumber ??" New topic
Author

How to obtain name of current method and sourcecode linenumber ??

Peter Schou
Greenhorn

Joined: Mar 11, 2001
Posts: 3
Is it possible to obtain the name of the current executing method and the linie number in sourcecode. It would be nice to use in tracing and error logging !
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Some of the IDEs have debuggers built in that show this.


"JavaRanch, where the deer and the Certified play" - David O'Meara
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to obtain name of current method and sourcecode linenumber ??
 
Similar Threads
keyword "this"
Getting the method name that you are currently in.
Locks
Issue regarding Executing Thread
Help with multiple selections