Monday Feb 04, 2008

Scala for NetBeans: Debugger Modules are Available for Test

=== Updated Feb 5 ==>
I just fixed a defect of debugger modules, the updated modules will be available after new nightly build successfully. Since the underlaying changes of NetBeans APIs, you may need to download a new nightly build.
===

Scala Debugger modules are available for preview and test, which can be installed via Update Center for newest nightly build version of NetBeans (I tested on NetBeans IDE 6.1 200802040003). Debug feature includes two modules: Scala Debugger and Scala Debugger Projects Integration (you can click on "Name" in "Available Plugins" tab to find them), for more getting started information, please see http://wiki.netbeans.org/Scala

Google Group:

Known Issues:

  • "Run to cursor" does not work yet
  • "Step into Scala standard library's code" is not supported yet
  • "Add watches" is not supported yet
  • Complex condictions are not tested yet

Adventure with Nightly Build:

  • Nightly build version of NetBeans changes frequently, please check updates frequently too: "Tool"->"Plugins"->"Reload Category" (please update all available modules, including those not relating to Scala). If things are broken, re-download a new nightly build and try ...

Comments:

Nice job! Keep it up.

I have a problem setting a breakpoint on the "println" line in the following code:

object Main {
trait Expr {
def eval : Int
}

/**
* @param args the command line arguments
*/
def main(args: Array[String]) = {
println("Hello, world: ")
}

}

It works when moving the trait outside the Main object definition or removing it completely. Even weirder is that commenting out the trait and setting the breakpoint and then uncommenting the trait, the breakpoint works, but not if it's removed and added again.

Posted by Jesper Nordenberg on February 05, 2008 at 11:32 AM PST #

Jesper,

I'll take a look, I think I wrongly processed Trait for debugging.

Posted by Caoyuan on February 05, 2008 at 03:42 PM PST #

Hello,
I had to modify the ant script to get it work on windows only with environment property.

In -init-properties build-impl.xml:
Added - <property environment="env"/>
Modified - <condition property="scala.home" value="${env.SCALA_HOME}">

Thanks for plugin!

Posted by Denis on February 05, 2008 at 06:53 PM PST #

Denis,

Thanks, that should solve the scala home issue on windows.

Posted by Caoyuan on February 06, 2008 at 03:36 AM PST #

Jesper,

I just fixed the issue you mentioned. Need s the latest nightly build.

Posted by Caoyuan on February 15, 2008 at 11:58 AM PST #

Post a Comment:
Comments are closed for this entry.