Hover over variable in debug does not work as expected
Migrated from http://lampsvn.epfl.ch/trac/scala/ticket/3320
Reporter mvackel
Create a new Scala Project an replace the main code (in com.testscala package) with:
Step to the next line (F6). Current line is 5. Hover over the "xx" shows "yy=0" (should show "xx=5").
Step to the next line (F6). The current line goes to line 4 (shouldn't be line 6?). Two F6 more and the current line is line 6.
Hover over the "x" (shows "x: Int"). Hover over the "y" (shows "y: Int"). Hover over the "xx" (shows "zz=0").
The "Variables" view shows all variables correctly all time.
Reporter mvackel
Create a new Scala Project an replace the main code (in com.testscala package) with:
1 package com.testscala
2 class ScalaClass(x: Int) {
3 val xx = x
4 val yy = xx + x
5 val zz = xx + yy + x
6 }
7
8 object Main {
9 def main(args: Array[String]): Unit = {
10 val a = new ScalaClass(5)
11 println(a.zz)
12 }
12 }
Set a breakpoint at line 3 and run in debug mode. When the program stops at line 3, place (hover) the cursor over the "x". It should show the value "5", but shows "x: Int".Step to the next line (F6). Current line is 5. Hover over the "xx" shows "yy=0" (should show "xx=5").
Step to the next line (F6). The current line goes to line 4 (shouldn't be line 6?). Two F6 more and the current line is line 6.
Hover over the "x" (shows "x: Int"). Hover over the "y" (shows "y: Int"). Hover over the "xx" (shows "zz=0").
The "Variables" view shows all variables correctly all time.
Leave a comment
Updating tickets (#3255, #3262, #3271, #3277, #3279, #3287, #3313, #3317, #3318, #3320, #3329, #1000000, #1000002, #1000004, #1000005, #1000007, #1000011, #1000013, #1000018, #1000019, #1000020, #1000022, #1000023, #1000024, #1000025, #1000026, #1000028, #1000031, #1000033, #1000034, #1000037, #1000039, #1000040, #1000041, #1000057, #1000058, #1000060, #1000061, #1000063, #1000064, #1000065, #1000067, #1000070, #1000073, #1000076, #1000080, #1000082, #1000083, #1000084, #1000085, #1000087, #1000088, #1000089, #1000090, #1000092, #1000093, #1000094, #1000095, #1000097, #1000102, #1000104, #1000106, #1000108, #1000110, #1000111, #1000116, #1000124, #1000126, #1000127, #1000129, #1000132, #1000133, #1000136, #1000139, #1000143, #1000144, #1000145, #1000148, #1000149, #1000152, #1000154, #1000155, #1000157, #1000158, #1000159, #1000161, #1000169, #1000170, #1000172, #1000174, #1000176, #1000178, #1000179, #1000183, #1000185, #1000188, #1000189, #1000192, #1000196, #1000198)
The hover variable feature doesn't work at all -> closing an invalid because unreproducible.