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

1. Jesper Nordenberg -- 2008-02-05 16:00

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.

2. Caoyuan -- 2008-02-05 16:00

Jesper,

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

3. Denis -- 2008-02-05 16:00

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!

4. Caoyuan -- 2008-02-05 16:00

Denis,

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

5. Caoyuan -- 2008-02-15 16:00

Jesper,

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

Add New Comment