Re: problems debugging scala program

Nathan Fiedler <[email protected]> Wed, 04 Feb 2004 00:28:37 -0800
Newsgroups gmane.comp.java.jswat.user
Organization Blue Marsh Softworks
Message-ID <1075883317.1103.5.camel@chip>
I was able to set my sourcepath appropriately and JSwat was able to find
the auction.scala source file. Fortunately, it seems that Scala
implements JSR-045 in this case. However, it does not seem to know about
debugging information -- jdb was also not able to set breakpoints due to
the same problem that JSwat reported. If there is some other Java
debugger that works, let me know. However, this is probably not likely,
and this is a problem with Scala which needs to be fixed in the
compiler.

n


On Tue, 2004-02-03 at 16:13, Jason Thomas wrote:
> I'm having some problems trying to debug a Scala 
> (http://scala.epfl.ch/) program.  Here is my output:
> 
> VM loaded
> Source for class not found. Check sourcepath. (Class: 
> examples.testAuction)
> VM running
> Failed breakpoint resolution: examples auction.scala:127 (suspend all 
> threads): There is no line number information for this class.
> Current thread set to 1
> VM running
> Hit breakpoint 45
> [main] testAuction$.main (auction.scala:127)
> [main] testAuction$.main (auction.scala:128)
> [main] testAuction$.main (auction.scala:129)
> 
> So you can see that on startup it complains about not finding the 
> source for the breakpoints.  But when I resume the program it does in 
> fact stop at my break points and allows me to step through the code.  
> The main problem is that it will not let me set breakpoints while the 
> VM is running.  It says "There is no line number information for this 
> class", even though I am stepping line by line through the source code 
> with no problems.  Thanks for any help!