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 235030 - Debug windows always opens File dialog for variables of type File.
Summary: Debug windows always opens File dialog for variables of type File.
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-26 12:39 UTC by aquaglia
Modified: 2013-08-27 10:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description aquaglia 2013-08-26 12:39:52 UTC
Product Version: NetBeans IDE Dev (Build 201308092300)
Java: 1.7.0_40-ea; Java HotSpot(TM) 64-Bit Server VM 24.0-b55
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-ea-b38
System: Windows 7 version 6.1 running on amd64; Cp1252; en_GB (nb)
User directory: C:\Users\quaglan\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\quaglan\AppData\Local\NetBeans\Cache\dev

In recent builds of NB, the debug window always opens the File dialog for variables of type File.
I do not find this as being always appropriate.
I am debugging a Java Web App that runs on a Linux box, but my development workstation is on Windows.

When remote debugging the Web App running on the Linux box, it does not make sense to me that the Windows File Dialog opens when watching a variable of a file that resides on the linux box, like for example:
solr1/inspire/xmlroot/INSPIRE-9690caaf-0e2f-11e3-8a0b-d8d3855bd8fc_20130826-111438/services/1/PullResults/4861-4880/resources/services/16/inspire.geoportal.resource.service.xml

The only thing I might want to do in that situation is to copy the file path but this has become quite cumbersome now that the File Dialog opens.
Comment 1 aquaglia 2013-08-26 13:37:12 UTC
In addition, if I add a Watch expression whose value is a file I click on the ellipsis in the Value column and copy and paste the value I get a "C:" prepended to the file path, which is really a bug:

C:/solr1/inspire/xmlroot/INSPIRE-9690caaf-0e2f-11e3-8a0b-d8d3855bd8fc_20130826-111438/services/1/PullResults/5261-5280/resources/services/14/resourceLocator2/view/services/1/layers/130/resourceReport/inspire.geoportal.resource.xml
Comment 2 Martin Entlicher 2013-08-26 14:55:54 UTC
This was introduced by issue #212827, we use all property editors that are registered in the IDE.

We should probably not use the specialized property editor for java.io.File in debugger, since you typically do not need to navigate the the file.
Comment 3 Martin Entlicher 2013-08-26 15:05:13 UTC
You can get the plain value by un-checking the "Show values as visual property editors, when available" icon on the left side of the Variables window.
Comment 4 Martin Entlicher 2013-08-26 15:31:23 UTC
Fixed by changeset:   262674:c2fc5d627a7e
http://hg.netbeans.org/core-main/rev/c2fc5d627a7e
Comment 5 Quality Engineering 2013-08-27 10:03:58 UTC
Integrated into 'main-silver', will be available in build *201308270854* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/c2fc5d627a7e
User: mentlicher@netbeans.org
Log: #235030: Ignore property editor for java.io.File class.