Improve performance for stepping
We need to cache more data from the debugged JVM:
(original ticket follows):
The scene is configured in the same way as here: http://www.assembla.com/spaces/scala-ide/support/tickets/1001000-scala-debugger-is-confused-when-stepping-into.
Go to Macros.scala, and navigate to "def macroExpand(". Put the breakpoint on the first breakpointable line of the method and try to debug any macro expansion (e.g. open test/files/run/macro-basic-ma-mdmi, pre-compile Impls_Macros_1.scala and debug scalac -language:experimental.macros Test_2.scala). Try to make a few Step Overs. Now switch to the vanilla debugger and repeat. Will me much faster.
- loaded classes
- anonymous functions/line numbers
- (maybe) constant pool data when skipping Forwarders
(original ticket follows):
The scene is configured in the same way as here: http://www.assembla.com/spaces/scala-ide/support/tickets/1001000-scala-debugger-is-confused-when-stepping-into.
Go to Macros.scala, and navigate to "def macroExpand(". Put the breakpoint on the first breakpointable line of the method and try to debug any macro expansion (e.g. open test/files/run/macro-basic-ma-mdmi, pre-compile Impls_Macros_1.scala and debug scalac -language:experimental.macros Test_2.scala). Try to make a few Step Overs. Now switch to the vanilla debugger and repeat. Will me much faster.
Leave a comment
on 2012-11-12 05:22 *
By Iulian Dragos
Eclipse version changed from Helios to Indigo - Eclipse 3.7
Description changed from The scene is configured in ... to We need to cache more data ...
Summary changed from scala debugger is noticeably slow than vanilla debugger to Improve performance for stepping
on 2012-12-04 03:42 *
By Mirco Dotta
We decided to postpone this to the next sprint, as it will require considerable work.
(In scala-ide:f6b586a8e05bdea4c61b98a28dcdb392f8b4981e) Integrated the debug cache to the debugger
It is used in for breakpoints and step-over.
Fixes the first part of the ticket: nested classes.
Re #1001001
Branch: master
It is used in for breakpoints and step-over.
Fixes the first part of the ticket: nested classes.
Re #1001001
Branch: master
(In scala-ide:86952ffa1b1a0b9d3f5ead736e975c4cdd690a82) Adds anon function and flags in cache
Creates an new map cache to store information about method containing the code
of anonymous functions, and method flags.
With tests.
Fixes #1001001
Branch: master
Creates an new map cache to store information about method containing the code
of anonymous functions, and method flags.
With tests.
Fixes #1001001
Branch: master
on 2013-06-07 07:48 *
By Iulian Dragos
Fixed in version changed from 3.0.0-RC1 to -none-
Version changed from 2.1.0-nightly-210 to 3.0.0-210
Milestone changed from Current to Helium