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 251573

Summary: Java-Debugger: Exceptions while executing toString() for Variables view propagated to the user via a popup
Product: debugger Reporter: markiewb
Component: JavaAssignee: Martin Entlicher <mentlicher>
Status: RESOLVED FIXED    
Severity: normal CC: Chiana
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: Shows the issue

Description markiewb 2015-04-01 20:04:57 UTC
Created attachment 152985 [details]
Shows the issue

* open application (f.e. anagram game)
* set a breakpoint in a containing class
* create a toString()-method for the same class, which throws an exception
* start application in debug mode 
* navigate till the breakpoint is hit
* open variable view -> popup with an exception 

It is a regression, because this works in 8.0.2. See the screenshot

Product Version: NetBeans IDE Dev (Build 201504011006)
Java: 1.8.0_40; Java HotSpot(TM) 64-Bit Server VM 25.40-b25
Runtime: Java(TM) SE Runtime Environment 1.8.0_40-b25
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 Martin Entlicher 2015-04-02 16:56:24 UTC
I agree that this is not nice. I've already seen a request like this...
Comment 2 Martin Entlicher 2015-04-20 11:34:12 UTC
*** Bug 251843 has been marked as a duplicate of this bug. ***
Comment 3 Martin Entlicher 2015-04-30 14:23:49 UTC
This was fixed by http://hg.netbeans.org/core-main/rev/cf42ba2e1045
Comment 4 Chiana 2015-05-01 15:19:53 UTC
Just super, i've pointed this out several times. How about my earlier suggestion of implementing a model that the debugger can safley use? as;

@DebugSafe
private String debugSafeToString() {
  return ...;
}

or something similar...
Comment 5 Chiana 2015-05-02 14:49:40 UTC
This is the same as #225959