You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Matt Sicker (Jira)" <ji...@apache.org> on 2020/07/28 17:29:00 UTC

[jira] [Commented] (LOG4J2-2900) Method Breakpoints very slow in Eclipse when using Log4j2

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

Matt Sicker commented on LOG4J2-2900:
-------------------------------------

Is this related to the problem described in [https://logging.apache.org/log4j/2.x/build.html] related to setting a hostname for the loopback address?

 

> Method Breakpoints very slow in Eclipse when using Log4j2
> ---------------------------------------------------------
>
>                 Key: LOG4J2-2900
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2900
>             Project: Log4j 2
>          Issue Type: Bug
>    Affects Versions: 2.13.3
>         Environment: I'm using log4j2 on Windows 10 Enterprise, Eclipse Version: 2020-06 (4.16.0) Build id: 20200615-1200, Java SE14 (14.0.2, the open source one).
>            Reporter: dave debugger
>            Priority: Minor
>
> I've noticed that if I set a Method breakpoint, of type Exit, in Eclipse with any log4j2 logging instantiated in a class then there's an approx 20 second delay before the debugging starts.  This delay is not present on the same project when logging is commented out.
>  
> So this simple text project in Eclipse is fine:
>  
> {code:java}
> package slowdebug;
> public class SlowDebug {
> public static void main(String[] args) { 
>  System.out.println("Hello world"); 
>  thisWontTakeLong(); 
>  System.out.println("The end"); }
>  private static void thisWontTakeLong() { 
>   System.out.println("BRB"); 
>  } 
> }{code}
>  
>  
> But adding the 2 log4j2 jars to the project and adding:
>  
> {code:java}
>  private static Logger logger = LogManager.getLogger(SlowDebug.class);
>  
> {code}
>  
>  
> and setting a Method breakpoint on main, editing it to make it an exit breakpoint not an entry one and the delay appears.
>  



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