scala debugger is confused when stepping into
Scala plugin version: 2.1.0.nightly-2_10-201204261133-06fd73b
Scala compiler version: 2.10.0.v20120425-140228-8f3f0724f9
Scala library version: 2.10.0.v20120425-140228-8f3f0724f9
Eclipse version: 3.6.2.v201102101200
1) Use today's scala/scala (e.g. this commit as a head: https://github.com/scala/scala/commit/8fc543b5dd7e6a8fa1827cc9e9d65e721cae140e).
2) Go to Typers.scala and put a breakpoint on: val result = if (tree1.isEmpty) tree1 else adapt(tree1, mode, pt, tree)
3) Step Into
The debugger should step into isEmpty in scala.reflect.api.Trees.scala. For me it steps into scala.reflect.reify.codegen.Trees.scala. The line number is actually correct.
Scala compiler version: 2.10.0.v20120425-140228-8f3f0724f9
Scala library version: 2.10.0.v20120425-140228-8f3f0724f9
Eclipse version: 3.6.2.v201102101200
1) Use today's scala/scala (e.g. this commit as a head: https://github.com/scala/scala/commit/8fc543b5dd7e6a8fa1827cc9e9d65e721cae140e).
2) Go to Typers.scala and put a breakpoint on: val result = if (tree1.isEmpty) tree1 else adapt(tree1, mode, pt, tree)
3) Step Into
The debugger should step into isEmpty in scala.reflect.api.Trees.scala. For me it steps into scala.reflect.reify.codegen.Trees.scala. The line number is actually correct.
Leave a comment
on 2012-05-07 08:19 *
By Mirco Dotta
Component changed from None to Debugger
Milestone set to Helium
(In scala-ide:6fecc86cd3e0c940bf033919bdf2b1be6aac6007) Filter out getter/setters and synthetic methods when stepping.
A large commit that is hard to break down. :)
- Added support for skipping getters, setters and synthetic members
- fixed an exception thrown during testing because the UI was not present
- fixed another issue when the smart-stepping that caused coming back to the wrong stack frame (possibly Test #1001000).
- reorganized/renamed the filter methods
Fixed #1001137.
Fixed #1001283.
Branch: master
A large commit that is hard to break down. :)
- Added support for skipping getters, setters and synthetic members
- fixed an exception thrown during testing because the UI was not present
- fixed another issue when the smart-stepping that caused coming back to the wrong stack frame (possibly Test #1001000).
- reorganized/renamed the filter methods
Fixed #1001137.
Fixed #1001283.
Branch: master
on 2012-10-25 08:18 *
By Iulian Dragos
(In scala-ide:6fecc86cd3e0c940bf033919bdf2b1be6aac6007) Filter out getter/setters and synthetic methods when stepping.
A large commit that is hard to break down. :)
- Added support for skipping getters, setters and synthetic members
- fixed an exception thrown during testing because the UI was not present
- fixed another issue when the smart-stepping that caused coming back to the wrong stack frame (possibly Test #1001000).
- reorganized/renamed the filter methods
Fixed #1001137.
Fixed #1001283.
Branch: platform/juno
A large commit that is hard to break down. :)
- Added support for skipping getters, setters and synthetic members
- fixed an exception thrown during testing because the UI was not present
- fixed another issue when the smart-stepping that caused coming back to the wrong stack frame (possibly Test #1001000).
- reorganized/renamed the filter methods
Fixed #1001137.
Fixed #1001283.
Branch: platform/juno
on 2012-10-29 10:35 *
By Iulian Dragos
We just need to check that it is better with a recent nightly.
on 2012-11-08 15:15 *
By Iulian Dragos
Eclipse version changed from Helios to Indigo - Eclipse 3.7
Status changed from Test to Fixed