This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 115160

Summary: Evaluation happens inside of debuggee
Product: ruby Reporter: cordawyn <cordawyn>
Component: DebuggerAssignee: issues@ruby <issues>
Status: NEW ---    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description cordawyn 2007-09-10 14:23:26 UTC
When viewing the results of destructive operations for Array, using the hovering tooltips, the array is modified
irreversibly. Consider the following code:

  a = [1, 2, 3]
  puts a.shift

Hovering the mouse over "a" and "shift" in the second line "destroys" the array: see the tooltip for "a", then for
"shift", then for "a" again, and so on, until the size of "a" is 0.
Comment 1 Martin Krauskopf 2007-09-10 16:44:30 UTC
This is relative to, might the same as, issue 101120 (which is even worse). This will have to be fixed rather in the
backend in the debug-commons rubyforge project. Very likely not in 6.0 time frame. I think that even mature Java
debugger do this. But in Ruby it could be easier to prevent this. Hopefully will have time for this after 6.0. Thanks
for the report.