I'm working on debug feature for Scala on NetBeans. I copied a smallest set of class from Java Debugger module, and hacked something to make debug working on a mixed project (A Java project with Scala source files). By default, NetBeans IDE will step through Scala source files that are called (see Greetjan's article: Stepping through Groovy in NetBeans IDE ), but you can't add breakpoints directly on Scala source file. So the first thing that I should work on is let the user can add/remove breakpoints in Scala Editor, and get NetBeans' debugger stopping at these breakpoints. After a full day hacking, I got this working.
The screenshot shows a mixed Java/Scala project, the example code was copied from Fred Janon's blog, it's a pretty simple example. I added a breakpoint on Dog.scala's "def talk()" function, then invoke debug, the execution stopped at this function as I expected, and you can see the context, for example: local variable "sound" on debugging windows (on the right-bottom)
I need to get the debug feature working on a pure Scala project, I have not tried yet, but it seems I need to get the Scala project module better before that.
Click on the picture to enlarge it
Read: Scala for NetBeans Screenshot#5: Working on Debug