You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Gili (JIRA)" <ji...@apache.org> on 2018/04/11 09:13:00 UTC

[jira] [Commented] (NETBEANS-421) Conditional breakpoints trigger when condition is false

    [ https://issues.apache.org/jira/browse/NETBEANS-421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16433594#comment-16433594 ] 

Gili commented on NETBEANS-421:
-------------------------------

I am pretty certain this is a bug in Netbeans now. https://stackoverflow.com/a/49770808/14731 contains an explanation of how to reproduce this in IntelliJ IDEA and Netbeans seems to have the same problem.

> Conditional breakpoints trigger when condition is false
> -------------------------------------------------------
>
>                 Key: NETBEANS-421
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-421
>             Project: NetBeans
>          Issue Type: Bug
>          Components: debugger - Java
>         Environment: Product Version: Apache NetBeans IDE Dev (Build incubator-netbeans-release-219-on-20180221)
> Updates: Updates available
> Java: 9.0.4; Java HotSpot(TM) 64-Bit Server VM 9.0.4+11
> Runtime: Java(TM) SE Runtime Environment 9.0.4+11
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_CA (nb)
> User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev
> Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev
>            Reporter: Gili
>            Priority: Major
>
> I set a conditional breakpoint which is triggering every time, even if the condition is false. I opened the Debugger Console and saw:
> {code:java}
> Breakpoint hit at line 299 in class com.holdmyspot.pyramid.binance.BinanceOrderStream$WebSocketListener by thread WebSocketClient@1801942731-21.
> ***
> The object was collected.
> ***
> {code}
> I believe this is coming from [https://github.com/apache/incubator-netbeans/blob/15bc442a91fa2be81488725b15c61386bf1d0b9b/debugger.jpda/src/org/netbeans/modules/debugger/jpda/JavaEvaluator.java#L168] but it isn't clear what this means.
> If I enter the conditional expression in the "Variables" tab, it evaluates correctly, so I don't think there is anything wrong with the expression.
> My conditional expression is {{symbol.equals(CurrencyPair.fromString("BNB/USD"))}} where {{symbol}} is a local String variable and {{CurrencyPair.fromString()}} is a static method.
> Please clarify what is going wrong, and improve the IDE so it explains to the user what is wrong.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists