« Return to Thread: [scala-tools] Setting breakpoints inside partial functions and other stuff

Re: [scala-tools] Setting breakpoints inside partial functions and other stuff

by Randall Schulz :: Rate this Message:

Reply to Author | View in Thread

On Friday May 22 2009, David Pollak wrote:

> Folks,
>
> I did some debugging yesterday with NetBeans and IntelliJ.  I was
> unable to set breakpoints inside partial functions.  I couldn't set
> breakpoints in for comprehensions and stepping through for
> comprehensions was not intuitive (I understand that they're sugar for
> map/flatMap, but I expected "step" to work at the language syntax
> level).
>
> So, am I missing a compiler setting or something that would make one
> or both of these use cases work as expected?  Does Eclipse have a
> better strategy for this?

I know only IDEA, but JetBrains has acknowledged debugger shortcomings
in the Scala plug-in and says they'll be fixed. I think Scala is a
challenge for them (either due to the language complexity vis. a vis.
Java or due to the magnitude of the resource allocation they've made to
support it or both), but things are moving along, just not as fast as
Scala-programming IDEA users might like.



> Thanks,
>
> David


Randall Schulz

 « Return to Thread: [scala-tools] Setting breakpoints inside partial functions and other stuff