You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Tomáš Procházka (Jira)" <ji...@apache.org> on 2021/01/02 22:00:00 UTC

[jira] [Updated] (NETBEANS-4517) Unable to add break-point for Java Stream methods(filter, map, etc)

     [ https://issues.apache.org/jira/browse/NETBEANS-4517?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tomáš Procházka updated NETBEANS-4517:
--------------------------------------
    Labels: debug lambda  (was: debug lambda pull-request-available)

> Unable to add break-point for Java Stream methods(filter, map, etc)
> -------------------------------------------------------------------
>
>                 Key: NETBEANS-4517
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-4517
>             Project: NetBeans
>          Issue Type: Bug
>          Components: debugger - Java
>    Affects Versions: 12.0, 11.3
>         Environment: Java: 14; OpenJDK 64-Bit Server VM 14+36-1461
> Runtime: OpenJDK Runtime Environment 14+36-1461
> System: Windows 10 version 10.0 running on amd64; 
>            Reporter: Akhilesh Singh
>            Priority: Major
>              Labels: debug, lambda
>
> Consider this source code:
> {{package org.netbeans.modules.learning.lambda.code.completion;}}
> {{import java.util.Arrays;}}
> {{public class NewClass {}}
> {{    public static void main(String... args) {}}
> {{        Arrays.stream(new String[] \{"a", "", "b"})}}
> {{              .filter(}}{{//breakpoint here}}{{}}
> {{                    s -> !s.isEmpty()) }}
> {{              .forEach(System.err::println);}}
>               }
> }
>  
> Add breakpoint on the marked line. Breakpoint added to one line above not on the filter method(add). Source code editor should allow to add the breakpoint on the filter.
>  
> Work around:
> 1.Write filter and lambda expression on the single line like below
> {{.filter(}}{{s -> !s.isEmpty())}}
> 2. Add breakpoint on this line
> 3. Hit enter after the ".filter("



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
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