Remote KVM Debugger

Using Sun One Studio 5 at the moment only for remote debugging via kdp debug agent. It seems Sun One does not recognize the availability of source files, despite the file source & class directories are already mounted! And so at the moment the debugger pauses only on method breakpoints but not on line ones and does not see any source files. Error flagged as "Source of class not found!". What is needed to set the right environment for debug only usage?

[473 byte] By [TaskinSakarya] at [2007-11-25 10:25:17]
# 1

A search on the java.sun.com forums found this:

Re: Source-level debugging with Sun ONE

Author: john_wen

In Reply To: Re: Source-level debugging with Sun ONE Nov 25, 2002 7:33 PM

Reply 2 of 2

Hi Mike,

you should mount your applicaton source directory

and please double check you class include debug

infomation(javac -g)

we use debugger remotely,it works well.

John

utsukushii at 2007-7-1 20:41:20 > top of Java-index,Development Tools,Java Tools...
# 2

Thank you Bradly and thank you John for the replies. The problem is now solved. The SUNs error message "source not found!" was very misleading and caused a bit of headache. The actual error message should perhaps say "check classpath in debug agent or KVM" and nothing to do with the source given to the SUN one, although if the source path given to the SUNone is not at the package level, it does put a line ? with no immediate explanation.

Taskin Sakarya at 2007-7-1 20:41:20 > top of Java-index,Development Tools,Java Tools...