This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Netbeans - Not able to submit breakpoint LineBreakpoint Test1.scala

No replies
dinesh@dineshv.com
Joined: 2010-02-18,
User offline. Last seen 2 years 34 weeks ago.

Hi Everybody,

Newbie here, trying to learn Scala by writing ScalaTest cases for a Java
Project. Using NetBeans 6.8, Scala 2.8 Beta and ScalaTest 1.0.1. I am unable
to set a breakpoint and debug. Please let me know how to.

class Test1 extends FeatureSpec {
feature ("Program Pricing Rules Evaluation") {
info("Given a specific Program")
info("Calling refreshProgram results in creation of ProgramModelPrice
for all applicable Models")
scenario ("Create a new Program") {
var pgm = new Program();
pgm.setName("Scala tested Pgm") //line 20
}}

Configuration - Project Properties in NetBeans
Project Properties->BuildCategory->Compiling->
Generate Debugging Info: ON
Additional Scalac Options: -g:line
Track Java Dependancies: ON

Netbeans says:
Not able to submit breakpoint LineBreakpoint Test1.scala : 20, reason: No
executable location available at line 20 in class scalatestapp1.Test1.
Invalid LineBreakpoint Test1.scala : 20

Thanks a lot,
Dinesh

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland