|
View:
New views
9 Messages
—
Rating Filter:
Alert me
|
|
|
[scala-tools] Setting breakpoints inside partial functions and other stuffFolks,
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? Thanks, David -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp |
|
|
Re: [scala-tools] Setting breakpoints inside partial functions and other stuffOn 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 |
|
|
Re: [scala-tools] Setting breakpoints inside partial functions and other stuffHi David,
I fixed this issue (on NetBeans) several weeks ago, but only available for NetBeans' nightly build, I'll release a new version around early June. -Caoyuan On Sat, May 23, 2009 at 12:32 AM, David Pollak <feeder.of.the.bears@...> 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? > > Thanks, > > David > > -- > Lift, the simply functional web framework http://liftweb.net > Beginning Scala http://www.apress.com/book/view/1430219890 > Follow me: http://twitter.com/dpp > Git some: http://github.com/dpp > |
|
|
Re: [scala-tools] Setting breakpoints inside partial functions and other stuffOn Fri, May 22, 2009 at 6:32 PM, David Pollak
<feeder.of.the.bears@...> wrote: > Does Eclipse have a better strategy for this? The Scala IDE for Eclipse does support setting breakpoints in (partial) functions. I suspect that stepping through for-comprehensions will still seem a little counter-intuitive, but running from breakpoint to breakpoint should be fairly comprehensible. Cheers, Miles -- Miles Sabin tel: +44 (0)7813 944 528 skype: milessabin http://twitter.com/milessabin |
|
|
Re: [scala-tools] Setting breakpoints inside partial functions and other stuffOn Fri, May 22, 2009 at 9:55 AM, Miles Sabin <miles@...> wrote: On Fri, May 22, 2009 at 6:32 PM, David Pollak Miles, Sorry for not trying Eclipse. I will do so today. Thanks! David
-- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp |
|
|
Re: [scala-tools] Setting breakpoints inside partial functions and other stuffOn Fri, May 22, 2009 at 9:48 AM, Caoyuan <dcaoyuan@...> wrote:
I can't wait.
-- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp |
|
|
Re: [scala-tools] Setting breakpoints inside partial functions and other stuffJavaOne-ish perhaps? On May 22, 2009 6:48 PM, "Caoyuan" <dcaoyuan@...> wrote: |
|
|
Re: [scala-tools] Setting breakpoints inside partial functions and other stuffOn Sat, May 23, 2009 at 2:08 AM, Mario Camou <mcamou@...> wrote:
> JavaOne-ish perhaps? Wait for NetBeans 6.7 official release. > > On May 22, 2009 6:48 PM, "Caoyuan" <dcaoyuan@...> wrote: > > Hi David, > > I fixed this issue (on NetBeans) several weeks ago, but only available > for NetBeans' nightly build, I'll release a new version around early > June. > > -Caoyuan > > On Sat, May 23, 2009 at 12:32 AM, David Pollak > <feeder.of.the.bears@...> wrote: > Folks, > > ... |
|
|
Re: [scala-tools] Setting breakpoints inside partial functions and other stuffOn Friday May 22 2009, Randall R Schulz wrote:
> 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. Incidentally, a new release of the Scala plug-in came out today. RRS |
| Free embeddable forum powered by Nabble | Forum Help |