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 56232 - Do not use HTML for values in debugger views
Summary: Do not use HTML for values in debugger views
Status: VERIFIED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@www
URL:
Keywords:
: 56469 56472 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-03-11 09:19 UTC by Martin Krauskopf
Modified: 2006-08-01 14:58 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (83.18 KB, image/png)
2005-03-30 08:01 UTC, Milan Kubec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Krauskopf 2005-03-11 09:19:39 UTC
As we fixed the StringRenderer (issue 55829) implementation the debugger value
displaying stoped to work propertly. Please use 'htmlDisplayValue' if you want
do display value in bold, red, ... html.
Comment 1 Jan Jancura 2005-03-11 15:11:36 UTC
I will look at it.
Comment 2 Roman Ondruska 2005-03-15 16:59:37 UTC
*** Issue 56469 has been marked as a duplicate of this issue. ***
Comment 3 arseniy 2005-03-23 10:51:36 UTC
*** Issue 56472 has been marked as a duplicate of this issue. ***
Comment 4 Jan Jancura 2005-03-27 12:06:24 UTC
Fixed in trunk.

QA: Test all debugger views - for all columns.


Checking in viewmodel/src/org/netbeans/modules/viewmodel/TreeModelNode.java;
/cvs/debuggercore/viewmodel/src/org/netbeans/modules/viewmodel/TreeModelNode.java,v
 <--  TreeModelNode.java
new revision: 1.23; previous revision: 1.22
done
Checking in viewmodel/src/org/netbeans/modules/viewmodel/TreeTable.java;
/cvs/debuggercore/viewmodel/src/org/netbeans/modules/viewmodel/TreeTable.java,v
 <--  TreeTable.java
new revision: 1.15; previous revision: 1.14
done
Checking in viewmodel/src/org/netbeans/spi/viewmodel/Models.java;
/cvs/debuggercore/viewmodel/src/org/netbeans/spi/viewmodel/Models.java,v  <-- 
Models.java
new revision: 1.14; previous revision: 1.13
done
Checking in viewmodel/src/org/netbeans/spi/viewmodel/NodeModel.java;
/cvs/debuggercore/viewmodel/src/org/netbeans/spi/viewmodel/NodeModel.java,v  <--
 NodeModel.java
new revision: 1.5; previous revision: 1.4
done
Checking in viewmodel/src/org/netbeans/spi/viewmodel/NodeModelFilter.java;
/cvs/debuggercore/viewmodel/src/org/netbeans/spi/viewmodel/NodeModelFilter.java,v
 <--  NodeModelFilter.java
new revision: 1.6; previous revision: 1.5
done
Checking in viewmodel/src/org/netbeans/spi/viewmodel/TableModel.java;
/cvs/debuggercore/viewmodel/src/org/netbeans/spi/viewmodel/TableModel.java,v 
<--  TableModel.java
new revision: 1.5; previous revision: 1.4
done
Checking in viewmodel/src/org/netbeans/spi/viewmodel/TableModelFilter.java;
/cvs/debuggercore/viewmodel/src/org/netbeans/spi/viewmodel/TableModelFilter.java,v
 <--  TableModelFilter.java
new revision: 1.6; previous revision: 1.5
done
Checking in viewmodel/src/org/netbeans/spi/viewmodel/TreeModelFilter.java;
/cvs/debuggercore/viewmodel/src/org/netbeans/spi/viewmodel/TreeModelFilter.java,v
 <--  TreeModelFilter.java
new revision: 1.7; previous revision: 1.6
done
Checking in viewmodel/test/unit/src/org/netbeans/api/viewmodel/BasicTest.java;
/cvs/debuggercore/viewmodel/test/unit/src/org/netbeans/api/viewmodel/BasicTest.java,v
 <--  BasicTest.java
new revision: 1.4; previous revision: 1.3
done
Comment 5 Milan Kubec 2005-03-30 08:00:37 UTC
Attaching screenshot showing that it's still reproducible in dev-200503291800
build in Watches view.
Comment 6 Milan Kubec 2005-03-30 08:01:15 UTC
Created attachment 21213 [details]
screenshot
Comment 7 Jan Jancura 2005-03-30 12:49:08 UTC
fixed in trunk.

Checking in
ui/src/org/netbeans/modules/debugger/jpda/ui/models/VariablesTableModel.java;
/cvs/debuggerjpda/ui/src/org/netbeans/modules/debugger/jpda/ui/models/VariablesTableModel.java,v
 <--  VariablesTableModel.java
new revision: 1.7; previous revision: 1.6
Comment 8 Max Sauer 2005-07-08 12:11:37 UTC
Please verify this issue Martin, thanks.
Comment 9 Martin Krauskopf 2005-07-11 08:18:07 UTC
I haven't noticed any problem with displaying values in debugger - verified
Comment 10 Jesse Glick 2005-08-05 23:09:22 UTC
I just saw this happen in a dev build. I had a var with a value like "<foo>" and
it was rendered as "&lt;foo&gt;". I don't know how to reproduce.
Comment 11 Martin Entlicher 2005-08-15 18:49:43 UTC
IMHO it's really fixed.
String foo = "<foo>";
is displayed as | foo | "<foo>" |
We return 'htmlDisplayValue' correctly AFAIK.
Comment 12 Jesse Glick 2005-08-15 18:57:08 UTC
Well I'll reopen with details if I see it again.
Comment 13 Martin Entlicher 2005-08-16 14:08:46 UTC
During fixing and testing of issue #61935 I've found occasionally
inconsistencies like "&lt;foo&gt;". After the fix of issue #61935 this should
definitely be gone.
Comment 14 Jesse Glick 2005-08-16 20:21:09 UTC
OK, thanks for update.
Comment 15 Jesse Glick 2005-08-29 00:43:40 UTC
It still happens. 050826, while debugging TargetListerTest (ant module).
TargetLister.Script.<init>'s inheritedPropertyDefs has a large
Map<String,String> value which is displayed correctly in the dialog and tooltip
of the toString version, but is preceded by "<html>" in the property sheet of
the Local Variables window, e.g.

Name                    |     toString()
------------------------+----------------------------------
inheritedPropertyDefs   | <html>{java.runtime.name=.....
Comment 16 Martin Entlicher 2005-08-30 17:55:15 UTC
The string is quite long. IMHO this is issue #57572. It needs to be solved
with/by issue #58691.
Comment 17 Jiri Kovalsky 2006-08-01 14:58:56 UTC
Okay, verifying. The remaining problem is tracked in issue #81335.