Probably stretching it a bit: possible to use scala operators in debug watch?

Hi,
  I am debugging a scala class. From the standpoint of the compiled class being just java now it is working normally.  In fact in the "watch" panel I'm even able to see the scala operator methods such as \, \\ ,  ::  (working with the scala.xml.Elem).   But I can't put a "watch" variable to actually use those methods. It gives a syntax error in the watch panel saying "Invalid identifier".   

This is just a nice-to-have, but wondering if there were any workaround for it?

So to recap: goal is to display the value of myXml \ "pathToSomeXml" (  or another way:  myXml.\("pathToSomeXml")   ) in the watch window.

3 comments
Comment actions Permalink

( added a screenshot - pic worth large collection of words..)
ijWatchOnScalaXml.JPG

0
Comment actions Permalink

The work-around is to simply create a named method that delegates to the entity whose name is not valid for Java.


Randall Schulz

0
Comment actions Permalink

i'm trying to view contents of in the scala.xml.Elem class so in this case the workaround would not apply.  but keep in mind for my own classes.

0

Please sign in to leave a comment.