The Artima Developer Community
Sponsored Link

Scala Buzz
Scala for NetBeans Screenshot#5: Working on Debug

0 replies.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a flat view of this topic  Flat View
Previous Topic   Next Topic
Threaded View: This topic has 0 replies on 1 page
Caoyuan Deng

Posts: 165
Nickname: dcaoyuan
Registered: Jan, 2008

Caoyuan Deng is an independent developer
Scala for NetBeans Screenshot#5: Working on Debug Posted: Jan 26, 2008 5:22 AM
Reply to this message Reply

This post originated from an RSS feed registered with Scala Buzz by Caoyuan Deng.
Original Post: Scala for NetBeans Screenshot#5: Working on Debug
Feed Title: Blogs about Scala from Caoyuan
Feed URL: http://blogtrader.org/page/dcaoyuan/feed/entries/atom?tags=scala
Feed Description: Blogs about Scala from Caoyuan Deng
Latest Scala Buzz Posts
Latest Scala Buzz Posts by Caoyuan Deng
Latest Posts From Blogs about Scala from Caoyuan

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

nn

Read: Scala for NetBeans Screenshot#5: Working on Debug


Topic: Scala for NetBeans Screenshot#5: Working on Debug Previous Topic   Next Topic Topic: Playing with Traits in Scala

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use