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 256280 - conditional breakpoint broken with method breakpoint on parameter condition when compiled without debugger info - even though debugger knows parameter value
Summary: conditional breakpoint broken with method breakpoint on parameter condition w...
Status: NEW
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 8.0.2
Hardware: PC Windows 8 x64
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-30 18:30 UTC by emiddio
Modified: 2015-11-01 20:57 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 emiddio 2015-10-30 18:30:00 UTC

    
Comment 1 emiddio 2015-10-30 18:34:17 UTC
conditional breakpoint broken with method breakpoint and method parameter condition when compiled without debugger info - even though debugger knows parameter value

breakpoint set on java.io.File. conditional breakpoint condition is,
pathname.contains("persistence.xml")

variables pane says Variable information not available, source compiled without -g option.

And variables pane shows pathname as opt/app/d3fnc1c1/jdk1.8.0_51/jre/lib/rt.jar",
and allows examining 'this'

Product Version: NetBeans IDE 8.0.2 (Build 201411181905)
Updates: NetBeans IDE is updated to version NetBeans 8.0.2 Patch 2
Java: 1.8.0_51; Java HotSpot(TM) 64-Bit Server VM 25.51-b03
Runtime: Java(TM) SE Runtime Environment 1.8.0_51-b16
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
User directory: C:\Users\gbello\AppData\Roaming\NetBeans\8.0.2
Cache directory: C:\Users\gbello\AppData\Local\NetBeans\Cache\8.0.2
16GByte ram.
Comment 2 Martin Entlicher 2015-10-30 18:43:39 UTC
The "pathname" in the conditional expression is a parameter of the method, right?
In this case, we'd have to retrieve the names of the method arguments from the source code.
Comment 3 emiddio 2015-11-01 20:57:44 UTC
why would you have to retrieve the name from source code? It is provided in the conditional expression. Also how does the debugger know the value since it shows it? It it can show it why can it not use it in a conditional expression ?