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

Jeff Vincent edited comment on NETBEANS-421 at 7/1/21, 5:37 PM:
----------------------------------------------------------------

I'm seeing this using Netbeans 12.4 + Java 8u221.  The screenshot below shows 
the condition, the current breakpoint, the value of the field being checked.

In the Debugger Console I see the message below, but it does not make sense 
that the object was collected.  It is in scope and actively being referenced:

{{Breakpoint hit at line 281 in class 
com.bluecoat.webpulse.qa.entitlementsync.Test_EntitlementSync_ValidateImportFromFile
 by thread PoolService-15.}}
 {{***}}
 {{The object was collected.}}
 {{***}}

 

!image-2021-07-01-11-32-18-081.png!


was (Author: predatorvi):
I'm seeing this using Netbeans 12.4 + Java 8u221.  The screenshot below shows 
the condition, the current breakpoint, the value of the field being checked.

In the Debugger Console I see but it does not make sense that the object was 
collected.  It is in scope and actively being referenced:

{{Breakpoint hit at line 281 in class 
com.bluecoat.webpulse.qa.entitlementsync.Test_EntitlementSync_ValidateImportFromFile
 by thread PoolService-15.}}
{{***}}
{{The object was collected.}}
{{***}}

 

!image-2021-07-01-11-32-18-081.png!

> 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
>         Attachments: image-2021-07-01-11-32-18-081.png
>
>
> 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
(v8.3.4#803005)

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

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

Reply via email to