File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes Stack Trace Link / line number Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Stack Trace Link / line number" Watch "Stack Trace Link / line number" New topic
Author

Stack Trace Link / line number

Mark Binau
Ranch Hand

Joined: Mar 04, 2004
Posts: 37
I am using WSAD 5.1. When my code prints a stack trace to the console, most the lines are hot links and display the line number. The lines that display (Unknown Source) are the ones that pertain to the code I have written. There must be a way to make it recoginize my code, but I have not been able to find it yet. Can someone point me in the right direction? What keyword should I search for in the help.

Thanks,
Mark
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30076
    
149

Mark,
Debugging and stack traces use the same paths. It's a bit easier to setup using debugging though. Try to debug into your class. When WSAD says it can't find the source, there is a button to add the jar.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30076
    
149

Alternatively, you can go the the project's build path and set the source path for a jar.
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
You should also check that in your compiler settings you have debug informations enabled.


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Stack Trace Link / line number
 
Similar Threads
false NullPointerException when reading Blob from database?
JApplet not connecting to SQL database
Jtable and database results
Problem in updating data to Oracle database in servlets
Ant Unknown Source?????